mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Fix some wrong event creations after previous change
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -509,7 +509,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
}
|
||||
|
||||
jPlugin.setEnabled(true);
|
||||
server.getPluginManager().callEvent(new PluginEvent(Event.Type.PLUGIN_ENABLE, plugin));
|
||||
server.getPluginManager().callEvent(new PluginEnableEvent(plugin));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -524,7 +524,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
|
||||
jPlugin.setEnabled(false);
|
||||
|
||||
server.getPluginManager().callEvent(new PluginEvent(Event.Type.PLUGIN_DISABLE, plugin));
|
||||
server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
|
||||
|
||||
loaders.remove(jPlugin.getDescription().getName());
|
||||
|
||||
|
Reference in New Issue
Block a user