summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
index 60a8d81c..eba23eb9 100644
--- a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
+++ b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
@@ -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());