--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/04/24 10:23:02 1385 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/20 20:10:41 1521 @@ -23,6 +23,15 @@ 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() ); + 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); @@ -35,6 +44,7 @@ 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); }