Fixed times for server shutdowns, add time value to ServerManagementIntent

This commit is contained in:
Waverunner
2015-01-21 09:53:57 -05:00
parent 474384540d
commit 0f6da1eaad
5 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -259,11 +259,11 @@ public class ChatService extends Service {
broadcastGalaxyMessage(String.format("The server will be shutting down in %d minutes.", time - (interval*2)), null);
break;
case 3:
broadcastGalaxyMessage("The server will be shutting down in 1 minute.", null);
broadcastGalaxyMessage("The server will now be shutting down.", null);
throw new RuntimeException("Reached max runCount"); // no "clean" ways to cancel the runnable I can think of
}
}
}, 0, time, TimeUnit.MINUTES);
}, 0, interval, TimeUnit.MINUTES);
}