Fixed logic issue toggling plugins
This commit is contained in:
parent
b80eb77fa6
commit
88bb572084
@ -144,7 +144,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
throw new IllegalArgumentException("Plugin is not associated with this PluginLoader");
|
||||
}
|
||||
|
||||
if (plugin.isEnabled()) {
|
||||
if (!plugin.isEnabled()) {
|
||||
JavaPlugin jPlugin = (JavaPlugin)plugin;
|
||||
|
||||
server.getPluginManager().callEvent(new PluginEvent(Event.Type.PLUGIN_ENABLE, plugin));
|
||||
@ -158,7 +158,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
throw new IllegalArgumentException("Plugin is not associated with this PluginLoader");
|
||||
}
|
||||
|
||||
if (!plugin.isEnabled()) {
|
||||
if (plugin.isEnabled()) {
|
||||
JavaPlugin jPlugin = (JavaPlugin)plugin;
|
||||
|
||||
server.getPluginManager().callEvent(new PluginEvent(Event.Type.PLUGIN_DISABLE, plugin));
|
||||
|
Loading…
x
Reference in New Issue
Block a user