32 |
getCommand("stoner").setExecutor( new StonerCommand() ); |
getCommand("stoner").setExecutor( new StonerCommand() ); |
33 |
getCommand("boom").setExecutor( new BoomCommand(this) ); |
getCommand("boom").setExecutor( new BoomCommand(this) ); |
34 |
getCommand("spawn").setExecutor( new SpawnCommand() ); |
getCommand("spawn").setExecutor( new SpawnCommand() ); |
35 |
|
getCommand("tp").setExecutor( new TeleportCommand() ); |
36 |
|
|
37 |
PluginManager pm = getServer().getPluginManager(); |
PluginManager pm = getServer().getPluginManager(); |
38 |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
60 |
DoorBlockListener secretDoor = new DoorBlockListener(this); |
DoorBlockListener secretDoor = new DoorBlockListener(this); |
61 |
pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this); |
pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this); |
62 |
pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this); |
pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this); |
63 |
|
pm.registerEvent(Event.Type.REDSTONE_CHANGE, secretDoor, Priority.Normal, this); |
64 |
pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this); |
65 |
|
|
66 |
} |
} |