--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/04 13:55:44 1501 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/26 10:04:04 1524 @@ -29,6 +29,8 @@ 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); @@ -43,6 +45,15 @@ 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); + } }