Do it another way. I fail.

This commit is contained in:
angelsl 2011-01-01 22:20:32 +08:00
parent 6bc6b8bf5a
commit 6d172891e2

View File

@ -43,6 +43,11 @@ public class WorldEdit extends Plugin {
*/ */
private String version; private String version;
public WorldEdit() {
ServerInterface.setup(new HMServerInterface());
listener = new HMWorldEditListener();
}
/** /**
* Initializes the plugin. * Initializes the plugin.
*/ */
@ -50,10 +55,6 @@ public class WorldEdit extends Plugin {
public void initialize() { public void initialize() {
PluginLoader loader = etc.getLoader(); PluginLoader loader = etc.getLoader();
ServerInterface.setup(new HMServerInterface());
listener = new HMWorldEditListener();
loader.addListener(PluginLoader.Hook.BLOCK_CREATED, listener, this, loader.addListener(PluginLoader.Hook.BLOCK_CREATED, listener, this,
PluginListener.Priority.MEDIUM); PluginListener.Priority.MEDIUM);
loader.addListener(PluginLoader.Hook.BLOCK_DESTROYED, listener, this, loader.addListener(PluginLoader.Hook.BLOCK_DESTROYED, listener, this,