Added an important line (firstrun false)
This commit is contained in:
parent
e864ceeb5d
commit
b911a4d3cc
1 changed files with 4 additions and 2 deletions
|
@ -126,9 +126,11 @@ public class ServerRunner {
|
||||||
try {
|
try {
|
||||||
if (restartcounter >= 0) {
|
if (restartcounter >= 0) {
|
||||||
if (restartcounter == RESTART_MESSAGE_COUNT)
|
if (restartcounter == RESTART_MESSAGE_COUNT)
|
||||||
if (firstrun)
|
if (firstrun) {
|
||||||
|
// writeToScreen("Sleeping for " + starttime);
|
||||||
Thread.sleep(starttime);
|
Thread.sleep(starttime);
|
||||||
else
|
firstrun = false;
|
||||||
|
} else
|
||||||
Thread.sleep(interval * 3600000);
|
Thread.sleep(interval * 3600000);
|
||||||
else if (restartcounter > 0) {
|
else if (restartcounter > 0) {
|
||||||
sendMessage(serveroutput, "red", "-- Server restarting in " + restartcounter + " seconds!");
|
sendMessage(serveroutput, "red", "-- Server restarting in " + restartcounter + " seconds!");
|
||||||
|
|
Loading…
Reference in a new issue