--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/27 16:16:37 1531 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/08/24 18:45:40 1592 @@ -22,7 +22,7 @@ public void onEnable() { System.out.println("Loading HoerupUtils plugin"); getCommand("whereis").setExecutor(new WhereisCommand(getServer())); - getCommand("mapgen").setExecutor(new MapgenCommand(this)); + //getCommand("mapgen").setExecutor(new MapgenCommand(this)); getCommand("eternalday").setExecutor(new EternalDayCommand(this)); getCommand("grass").setExecutor(new GrassCommand()); getCommand("getpos").setExecutor( new GetposCommand() ); @@ -32,6 +32,16 @@ getCommand("stoner").setExecutor( new StonerCommand() ); getCommand("boom").setExecutor( new BoomCommand(this) ); getCommand("spawn").setExecutor( new SpawnCommand() ); + getCommand("tp").setExecutor( new TeleportCommand() ); + + getCommand("wall").setExecutor( new WallCommand() ); + getCommand("weather").setExecutor( new WeatherCommand() ); + + + HomeCommand home = new HomeCommand(this); + getCommand("home").setExecutor( home ); + getCommand("sethome").setExecutor( home ); + PluginManager pm = getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); @@ -59,6 +69,7 @@ DoorBlockListener secretDoor = new DoorBlockListener(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.REDSTONE_CHANGE, secretDoor, Priority.Normal, this); pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this); }