geforkt von Mirrors/Paper
Changed PluginDisableEvent to fire before the disabling of a plugin, instead of after (where it's then invalid). Thanks to holic for the PR.
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
0c182ec82d
Commit
4e9fcec4a4
@ -991,6 +991,8 @@ public class JavaPluginLoader implements PluginLoader {
|
||||
}
|
||||
|
||||
if (plugin.isEnabled()) {
|
||||
server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
|
||||
|
||||
JavaPlugin jPlugin = (JavaPlugin) plugin;
|
||||
ClassLoader cloader = jPlugin.getClassLoader();
|
||||
|
||||
@ -1000,8 +1002,6 @@ public class JavaPluginLoader implements PluginLoader {
|
||||
server.getLogger().log(Level.SEVERE, "Error occurred while disabling " + plugin.getDescription().getFullName() + " (Is it up to date?): " + ex.getMessage(), ex);
|
||||
}
|
||||
|
||||
server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
|
||||
|
||||
loaders.remove(jPlugin.getDescription().getName());
|
||||
|
||||
if (cloader instanceof PluginClassLoader) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren