Fixed restart message condit5ion

This commit is contained in:
Norbi Peti 2016-11-25 14:28:54 +01:00
parent ae70b6ea83
commit def60a7abc

View file

@ -135,8 +135,9 @@ public class ServerRunner {
firstrun = false;
} else
Thread.sleep(interval * 3600000);
else if (restartcounter > 0 && restartcounter % 10 == 0) {
sendMessage(serveroutput, "red", "-- Server restarting in " + restartcounter + " seconds!");
else if (restartcounter > 0) {
if (restartcounter % 10 == 0)
sendMessage(serveroutput, "red", "-- Server restarting in " + restartcounter + " seconds!");
Thread.sleep(1000); // TODO: Change to bossbar? (plugin)
} else {
writeToScreen("Stopping server for restart...");