forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -43,8 +43,9 @@ public class Realtime extends JavaPlugin implements Listener {
|
||||
Date date = new Date();
|
||||
long time = date.getHours() * 1000 + (long) (date.getMinutes() * 16.66666666666667) + (long) (date.getSeconds() * 0.1666666666666667) - 6000;
|
||||
|
||||
for (World world : Bukkit.getWorlds())
|
||||
for (World world : Bukkit.getWorlds()) {
|
||||
world.setTime(time);
|
||||
}
|
||||
}, 0, 600);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user