--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/05/21 18:06:15 1472 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/26 13:29:58 1525 @@ -25,6 +25,12 @@ getCommand("eternalday").setExecutor(new EternalDayCommand(this)); getCommand("grass").setExecutor(new GrassCommand()); getCommand("getpos").setExecutor( new GetposCommand() ); + getCommand("zapme").setExecutor( new ZapmeCommand() ); + getCommand("zap").setExecutor( new ZapCommand() ); + getCommand("msg").setExecutor( new MsgCommand( getServer() ) ); + getCommand("stoner").setExecutor( new StonerCommand() ); + getCommand("boom").setExecutor( new BoomCommand(this) ); + getCommand("spawn").setExecutor( new SpawnCommand() ); PluginManager pm = getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); @@ -39,6 +45,21 @@ pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this); pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this); getCommand("powerminer").setExecutor(powerMiner); + + + SuperMiner superMiner = new SuperMiner(); + pm.registerEvent(Event.Type.BLOCK_DAMAGE, superMiner, Priority.Normal, this); + pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this); + getCommand("superminer").setExecutor(superMiner); + + pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this); + + + SecretDoor secretDoor = new SecretDoor(this); + pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this); + pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this); + pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this); + } }