--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/04/23 13:14:39 1378 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/04 13:55:44 1501 @@ -23,6 +23,12 @@ getCommand("whereis").setExecutor(new WhereisCommand(getServer())); getCommand("mapgen").setExecutor(new MapgenCommand(this)); 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() ); PluginManager pm = getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); @@ -33,9 +39,10 @@ pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this); - AdminDestroy adminDestroy = new AdminDestroy(); - pm.registerEvent(Event.Type.BLOCK_DAMAGE, adminDestroy, Priority.Normal, this); - getCommand("admindestroy").setExecutor(adminDestroy); + PowerMiner powerMiner = new PowerMiner(); + 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); } }