BileTools icon indicating copy to clipboard operation
BileTools copied to clipboard

Broken by Paper's new plugin loader

Open datatags opened this issue 2 years ago • 3 comments

Paper just rewrote their plugin loader, involving some change that breaks plugins that unregister other plugins. Is there anything that can be done to work around this?

Specifically, what's happening is that the old version of the plugin will be disabled, but the new version is not loaded. Here's what the log looks like:

[11:59:23 INFO]: [BileTools] File change detected: UltraCosmetics-3.0-DEV-b7.jar
[11:59:23 INFO]: [BileTools] Identified Plugin: UltraCosmetics <-> UltraCosmetics-3.0-DEV-b7.jar
[11:59:23 INFO]: [BileTools] Reloading: UltraCosmetics
[11:59:23 INFO]: [BileTools] [STDOUT] Backed up UltraCosmetics 3.0-DEV-b7
[11:59:23 INFO]: [Bile]: Unloading UltraCosmetics
[11:59:23 INFO]: [UltraCosmetics] Disabling UltraCosmetics v3.0-DEV-b7

It seems like this is the check that's failing with the change in Paper:

if (getPlugin(file) != null) {
    return;
}

datatags avatar Feb 22 '23 21:02 datatags

I am also having this issue

polypixeldev avatar Feb 27 '23 20:02 polypixeldev

Me too

Stephcraft avatar May 10 '23 16:05 Stephcraft

same

xNasuni avatar May 19 '23 21:05 xNasuni