Made the plugin at least load.

This commit is contained in:
sk89q 2010-12-31 19:28:28 -08:00
parent e2905bd3fa
commit d0e4cc7454
2 changed files with 8 additions and 7 deletions

View File

@ -36,6 +36,7 @@
<attribute name="WorldEdit-Version" value="${version}"/>
<attribute name="Class-Path" value="jnbt.jar truezip.jar"/>
</manifest>
<copy tofile="${build.dir}/plugin.yml" file="plugin.yml"/>
<jar jarfile="${dist.dir}/WorldEdit.jar" basedir="${build.dir}" manifest="manifest.mf"/>
</target>

View File

@ -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,