6 |
import org.bukkit.plugin.PluginManager; |
import org.bukkit.plugin.PluginManager; |
7 |
import org.bukkit.plugin.java.JavaPlugin; |
import org.bukkit.plugin.java.JavaPlugin; |
8 |
|
|
9 |
|
import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener; |
10 |
import dk.thoerup.bukkit.hoeruputils.web.MessageListener; |
import dk.thoerup.bukkit.hoeruputils.web.MessageListener; |
11 |
import dk.thoerup.bukkit.hoeruputils.web.StatusListener; |
import dk.thoerup.bukkit.hoeruputils.web.StatusListener; |
12 |
|
|
27 |
getCommand("grass").setExecutor(new GrassCommand()); |
getCommand("grass").setExecutor(new GrassCommand()); |
28 |
getCommand("getpos").setExecutor( new GetposCommand() ); |
getCommand("getpos").setExecutor( new GetposCommand() ); |
29 |
getCommand("zapme").setExecutor( new ZapmeCommand() ); |
getCommand("zapme").setExecutor( new ZapmeCommand() ); |
30 |
|
getCommand("zap").setExecutor( new ZapCommand() ); |
31 |
getCommand("msg").setExecutor( new MsgCommand( getServer() ) ); |
getCommand("msg").setExecutor( new MsgCommand( getServer() ) ); |
32 |
|
getCommand("stoner").setExecutor( new StonerCommand() ); |
33 |
|
getCommand("boom").setExecutor( new BoomCommand(this) ); |
34 |
|
getCommand("spawn").setExecutor( new SpawnCommand() ); |
35 |
|
|
36 |
PluginManager pm = getServer().getPluginManager(); |
PluginManager pm = getServer().getPluginManager(); |
37 |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
46 |
pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this); |
pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this); |
47 |
pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this); |
48 |
getCommand("powerminer").setExecutor(powerMiner); |
getCommand("powerminer").setExecutor(powerMiner); |
49 |
|
|
50 |
|
|
51 |
|
SuperMiner superMiner = new SuperMiner(); |
52 |
|
pm.registerEvent(Event.Type.BLOCK_DAMAGE, superMiner, Priority.Normal, this); |
53 |
|
pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this); |
54 |
|
getCommand("superminer").setExecutor(superMiner); |
55 |
|
|
56 |
|
pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this); |
57 |
|
|
58 |
|
|
59 |
|
DoorBlockListener secretDoor = new DoorBlockListener(this); |
60 |
|
pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this); |
61 |
|
pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this); |
62 |
|
pm.registerEvent(Event.Type.REDSTONE_CHANGE, secretDoor, Priority.Normal, this); |
63 |
|
pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this); |
64 |
|
|
65 |
} |
} |
66 |
|
|
67 |
} |
} |