mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Do it another way. I fail.
This commit is contained in:
parent
6bc6b8bf5a
commit
6d172891e2
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user