Browse Source

daily reboot removal

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
4d21fc0353
  1. 9
      src/engine/server/world/WorldServer.java

9
src/engine/server/world/WorldServer.java

@ -210,15 +210,6 @@ public class WorldServer { @@ -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();

Loading…
Cancel
Save