geforkt von Mirrors/Paper
Catch setEnabled to ensure classloader is properly unloaded (#10020)
Dieser Commit ist enthalten in:
Ursprung
a3a40ecd2b
Commit
a52612213b
@ -3994,8 +3994,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ plugin.getLogger().info("Disabling %s".formatted(pluginName));
|
||||
+
|
||||
+ this.server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
|
||||
+
|
||||
+ javaPlugin.setEnabled(false);
|
||||
+ try {
|
||||
+ javaPlugin.setEnabled(false);
|
||||
+ } catch (Throwable ex) {
|
||||
+ this.server.getLogger().log(Level.SEVERE, "Error occurred while disabling " + pluginName, ex);
|
||||
+ }
|
||||
+
|
||||
+ ClassLoader classLoader = plugin.getClass().getClassLoader();
|
||||
+ if (classLoader instanceof ConfiguredPluginClassLoader configuredPluginClassLoader) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren