daily reboot removal

This commit is contained in:
2024-03-14 20:56:34 -05:00
parent 4d28cd2b25
commit 4d21fc0353
-9
View File
@@ -210,15 +210,6 @@ public class WorldServer {
this.isRunning = true;
while (true) {
if(LocalDateTime.now().getHour() == 2 && LocalDateTime.now().getMinute() == 0){
//daily reboot
try {
Runtime rt = Runtime.getRuntime();
rt.exec("./mbrestart.sh");
} catch (java.io.IOException err) {
Logger.info(err.getMessage());
}
}
if (LocalDateTime.now().isAfter(nextHeartbeatTime)) {
SERVERHEARTBEAT.tick();