From 63595772bd81141ce83a68ecfa7771d464989879 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 3 Jan 2011 02:41:18 +0000 Subject: [PATCH] Fixed logic issue toggling plugins By: Dinnerbone --- .../main/java/org/bukkit/plugin/java/JavaPluginLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java index d90d6a5922..667fcb3f2c 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java @@ -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));