--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/06/26 13:29:58 1525 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/08/16 07:44:12 1589 @@ -6,6 +6,7 @@ import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; +import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener; import dk.thoerup.bukkit.hoeruputils.web.MessageListener; import dk.thoerup.bukkit.hoeruputils.web.StatusListener; @@ -21,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() ); @@ -31,6 +32,7 @@ getCommand("stoner").setExecutor( new StonerCommand() ); getCommand("boom").setExecutor( new BoomCommand(this) ); getCommand("spawn").setExecutor( new SpawnCommand() ); + getCommand("tp").setExecutor( new TeleportCommand() ); PluginManager pm = getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); @@ -55,9 +57,10 @@ pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this); - SecretDoor secretDoor = new SecretDoor(this); + 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); }