|
|
@ -201,7 +201,7 @@ public class WorldServer { |
|
|
|
LocalDateTime nextHeartbeatTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextHeartbeatTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextPopulationFileTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextPopulationFileTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextFlashTrashCheckTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextFlashTrashCheckTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1); |
|
|
|
LocalDateTime nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(0); |
|
|
|
LocalDateTime nextWareHousePushTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextWareHousePushTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nextDiscSpawn = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1); |
|
|
|
LocalDateTime nextDiscSpawn = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1); |
|
|
|
|
|
|
|
|
|
|
@ -236,7 +236,7 @@ public class WorldServer { |
|
|
|
//}else{
|
|
|
|
//}else{
|
|
|
|
// nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(0);
|
|
|
|
// nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(0);
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
nextHourlyJobTime = LocalDateTime.now().plusMinutes(1); |
|
|
|
nextHourlyJobTime = nextHourlyJobTime.plusMinutes(30); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (LocalDateTime.now().isAfter(nextWareHousePushTime)) { |
|
|
|
if (LocalDateTime.now().isAfter(nextWareHousePushTime)) { |
|
|
@ -252,7 +252,7 @@ public class WorldServer { |
|
|
|
dropper.respawn(); |
|
|
|
dropper.respawn(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
nextDiscSpawn = LocalDateTime.now().plusHours(3).withMinute(0).withSecond(0); |
|
|
|
nextDiscSpawn = LocalDateTime.now().plusHours(6).withMinute(0).withSecond(0); |
|
|
|
} |
|
|
|
} |
|
|
|
ThreadUtils.sleep(50); |
|
|
|
ThreadUtils.sleep(50); |
|
|
|
} |
|
|
|
} |
|
|
|