Deprecate API methods added by 'Close Plugin Class Loaders on Disable' (#6737)

This commit is contained in:
Jason Penilla
2021-10-06 23:00:32 -05:00
parent 16088745e1
commit 20feb576da
3 changed files with 44 additions and 80 deletions

View File

@@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
} catch (Throwable ex) {
server.getLogger().log(Level.SEVERE, "Error occurred while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
+ // Paper start - Disable plugins that fail to load
+ disablePlugin(jPlugin);
+ this.server.getPluginManager().disablePlugin(jPlugin);
+ return;
+ // Paper end
}