From d0e4cc7454d8748ec8757dea66b8d05ec18e5115 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 31 Dec 2010 19:28:28 -0800 Subject: [PATCH] Made the plugin at least load. --- build.xml | 1 + .../sk89q/worldedit/bukkit/WorldEditPlugin.java | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/build.xml b/build.xml index f18a9482e..86f061d18 100644 --- a/build.xml +++ b/build.xml @@ -36,6 +36,7 @@ + diff --git a/src/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/src/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 7ea755e92..a4fc11fe1 100644 --- a/src/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/src/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -42,12 +42,6 @@ public class WorldEditPlugin extends JavaPlugin { PluginDescriptionFile desc, File plugin, ClassLoader cLoader) { super(pluginLoader, instance, desc, plugin, cLoader); - registerEvents(); - } - - public void onEnable() { - //loadConfiguration(); - ServerInterface.setup(new BukkitServerInterface(getServer())); controller.profile = true; @@ -66,13 +60,19 @@ public class WorldEditPlugin extends JavaPlugin { controller.noDoubleSlash = true; controller.useInventory = false; controller.useInventoryOverride = false; + + registerEvents(); + } + + public void onEnable() { + //loadConfiguration(); } public void onDisable() { controller.clearSessions(); } - private void registerEvents() { + private void registerEvents() { getServer().getPluginManager().registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this); getServer().getPluginManager().registerEvent(Event.Type.PLAYER_COMMAND,