Fixed restart message condit5ion
This commit is contained in:
parent
ae70b6ea83
commit
def60a7abc
1 changed files with 3 additions and 2 deletions
|
@ -135,7 +135,8 @@ public class ServerRunner {
|
||||||
firstrun = false;
|
firstrun = false;
|
||||||
} else
|
} else
|
||||||
Thread.sleep(interval * 3600000);
|
Thread.sleep(interval * 3600000);
|
||||||
else if (restartcounter > 0 && restartcounter % 10 == 0) {
|
else if (restartcounter > 0) {
|
||||||
|
if (restartcounter % 10 == 0)
|
||||||
sendMessage(serveroutput, "red", "-- Server restarting in " + restartcounter + " seconds!");
|
sendMessage(serveroutput, "red", "-- Server restarting in " + restartcounter + " seconds!");
|
||||||
Thread.sleep(1000); // TODO: Change to bossbar? (plugin)
|
Thread.sleep(1000); // TODO: Change to bossbar? (plugin)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue