diff options
author | md_5 <md_5@bigpond.com> | 2012-02-15 19:55:41 +1100 |
---|---|---|
committer | md_5 <md_5@bigpond.com> | 2012-02-15 19:55:41 +1100 |
commit | 7633b136e3f221d4c3b2cc0ee19ffbed97c1423b (patch) | |
tree | caaf1506c61405fd4646b00445823e7ae0f674ca /EssentialsUpdate/src/com | |
parent | 0252d756f632f96de6d2a20f3a746e4c5f2c6fe5 (diff) | |
download | Essentials-7633b136e3f221d4c3b2cc0ee19ffbed97c1423b.tar Essentials-7633b136e3f221d4c3b2cc0ee19ffbed97c1423b.tar.gz Essentials-7633b136e3f221d4c3b2cc0ee19ffbed97c1423b.tar.lz Essentials-7633b136e3f221d4c3b2cc0ee19ffbed97c1423b.tar.xz Essentials-7633b136e3f221d4c3b2cc0ee19ffbed97c1423b.zip |
Its a good idea to actually register the listeners
Diffstat (limited to 'EssentialsUpdate/src/com')
-rw-r--r-- | EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java b/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java index f0b86f37a..9fa587f8f 100644 --- a/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/UpdateProcess.java @@ -13,7 +13,6 @@ import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerChatEvent; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.plugin.Plugin; -import org.bukkit.plugin.PluginManager; public class UpdateProcess implements Listener @@ -32,7 +31,7 @@ public class UpdateProcess implements Listener public void registerEvents() { - final PluginManager pluginManager = plugin.getServer().getPluginManager(); + plugin.getServer().getPluginManager().registerEvents(this, plugin); } public boolean selfUpdate() |