mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fix oversight. :)
This commit is contained in:
parent
e5808b75d8
commit
6bc6b8bf5a
@ -35,7 +35,7 @@ public class WorldEdit extends Plugin {
|
|||||||
/**
|
/**
|
||||||
* WorldEditLibrary instance.
|
* WorldEditLibrary instance.
|
||||||
*/
|
*/
|
||||||
private static final HMWorldEditListener listener = new HMWorldEditListener();
|
private static HMWorldEditListener listener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WorldEdit version, fetched from the .jar's manifest. Used to print the
|
* WorldEdit version, fetched from the .jar's manifest. Used to print the
|
||||||
@ -50,6 +50,10 @@ 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,
|
||||||
@ -63,8 +67,6 @@ public class WorldEdit extends Plugin {
|
|||||||
loader.addListener(PluginLoader.Hook.ARM_SWING, listener, this,
|
loader.addListener(PluginLoader.Hook.ARM_SWING, listener, this,
|
||||||
PluginListener.Priority.MEDIUM);
|
PluginListener.Priority.MEDIUM);
|
||||||
|
|
||||||
ServerInterface.setup(new HMServerInterface());
|
|
||||||
|
|
||||||
logger.log(Level.INFO, "WorldEdit version " + getVersion() + " loaded");
|
logger.log(Level.INFO, "WorldEdit version " + getVersion() + " loaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user