30 |
getCommand("msg").setExecutor( new MsgCommand( getServer() ) ); |
getCommand("msg").setExecutor( new MsgCommand( getServer() ) ); |
31 |
getCommand("stoner").setExecutor( new StonerCommand() ); |
getCommand("stoner").setExecutor( new StonerCommand() ); |
32 |
getCommand("boom").setExecutor( new BoomCommand(this) ); |
getCommand("boom").setExecutor( new BoomCommand(this) ); |
33 |
|
getCommand("spawn").setExecutor( new SpawnCommand() ); |
34 |
|
|
35 |
PluginManager pm = getServer().getPluginManager(); |
PluginManager pm = getServer().getPluginManager(); |
36 |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
45 |
pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this); |
pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this); |
46 |
pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this); |
47 |
getCommand("powerminer").setExecutor(powerMiner); |
getCommand("powerminer").setExecutor(powerMiner); |
48 |
|
|
49 |
|
|
50 |
|
SuperMiner superMiner = new SuperMiner(); |
51 |
|
pm.registerEvent(Event.Type.BLOCK_DAMAGE, superMiner, Priority.Normal, this); |
52 |
|
pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this); |
53 |
|
getCommand("superminer").setExecutor(superMiner); |
54 |
|
|
55 |
|
pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this); |
56 |
|
|
57 |
|
|
58 |
|
SecretDoor secretDoor = new SecretDoor(this); |
59 |
|
pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this); |
60 |
|
pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this); |
61 |
|
pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this); |
62 |
|
|
63 |
} |
} |
64 |
|
|
65 |
} |
} |