forked from SteamWar/SteamWar
@@ -42,7 +42,6 @@ public class Realtime extends JavaPlugin implements Listener {
|
||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, () -> {
|
||||
Date date = new Date();
|
||||
long time = date.getHours() * 1000 + (long)(date.getMinutes() * 16.66666666666667) + (long)(date.getSeconds() * 0.1666666666666667) - 6000;
|
||||
time = 24000 - time;
|
||||
|
||||
for(World world : Bukkit.getWorlds())
|
||||
world.setTime(time);
|
||||
|
||||
Reference in New Issue
Block a user