30 |
|
|
31 |
@Override |
@Override |
32 |
public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) { |
public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) { |
33 |
|
//debug |
34 |
|
System.out.println("world count " + worlds.size()); |
35 |
|
for (World world : worlds) { |
36 |
|
System.out.println(" >" + world.getName() + " : " + world.getTime() ); |
37 |
|
} |
38 |
|
|
39 |
if (taskId == -1) { |
if (taskId == -1) { |
40 |
taskId = server.getScheduler().scheduleSyncRepeatingTask(plugin, new EternalDayRunner(), 2*20, 60*20); |
taskId = server.getScheduler().scheduleSyncRepeatingTask(plugin, new EternalDayRunner(), 2*20, 60*20); |