diff options
-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() |