--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/20 20:10:41 1521 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/24 11:13:59 1522 @@ -31,7 +31,6 @@ getCommand("stoner").setExecutor( new StonerCommand() ); getCommand("boom").setExecutor( new BoomCommand(this) ); getCommand("spawn").setExecutor( new SpawnCommand() ); - getCommand("superminer").setExecutor( new SuperminerCommand() ); PluginManager pm = getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); @@ -46,6 +45,13 @@ 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); + } }