--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/03/20 16:23:13 1236 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java 2011/03/22 19:50:46 1240 @@ -18,9 +18,13 @@ public void onEnable() { System.out.println("Loading HoerupUtils plugin"); getCommand("whereis").setExecutor(new WhereisCommand(getServer())); + getCommand("mapgen").setExecutor(new MapgenCommand(this)); PluginManager pm = getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); + pm.registerEvent(Event.Type.ENTITY_DEATH, new RespawnHandler.PlayerDeathListener(this.getDataFolder()), Priority.Normal, this); + + this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new PeriodicStatusSaver(getServer()), 10*20, 2*60*20); } }