summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-03-26 23:19:50 +0100
committerErik Broes <erikbroes@grum.nl>2011-03-26 23:19:50 +0100
commit7004b6f040af0e1ee0f01228011178dbe74b3357 (patch)
treee2bdeb602a1be33110e4ddba5348cd9a025c479a /src
parent94894216e8993a332c6977eb8c88d4ec8aff14be (diff)
downloadbukkit-7004b6f040af0e1ee0f01228011178dbe74b3357.tar
bukkit-7004b6f040af0e1ee0f01228011178dbe74b3357.tar.gz
bukkit-7004b6f040af0e1ee0f01228011178dbe74b3357.tar.lz
bukkit-7004b6f040af0e1ee0f01228011178dbe74b3357.tar.xz
bukkit-7004b6f040af0e1ee0f01228011178dbe74b3357.zip
Fix some wrong event creations after previous change
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());