--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/EternalDayCommand.java 2011/05/26 18:55:45 1479 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/EternalDayCommand.java 2011/05/26 18:57:50 1480 @@ -32,9 +32,7 @@ public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) { //debug System.out.println("world count " + worlds.size()); - for (World world : worlds) { - System.out.println(" >" + world.getName() + " : " + world.getTime() ); - } + if (taskId == -1) { taskId = server.getScheduler().scheduleSyncRepeatingTask(plugin, new EternalDayRunner(), 2*20, 60*20); @@ -56,6 +54,7 @@ public void run() { for(World world : worlds) { if (world.getTime() > 12000) { + System.out.println(" >" + world.getName() + " : " + world.getTime() ); world.setTime(0); server.getScheduler().scheduleSyncDelayedTask(plugin, new MessageBroadcaster(server, ChatColor.YELLOW + "Eternalday has extended the period of light once again!")); }