Added checks to restart UHC servers stuck in restarting mode.

This commit is contained in:
Jonathan Williams 2014-12-01 03:34:37 -08:00
parent 0540168af7
commit 78a0aa7c96

View File

@ -98,7 +98,7 @@ public class ServerMonitor
for (MinecraftServer minecraftServer : serverStatuses)
{
if (minecraftServer.getMotd().contains("Finished"))
if (minecraftServer.getMotd().contains("Finished") || (minecraftServer.getGroup().equalsIgnoreCase("UltraHardcore") && minecraftServer.getMotd().contains("Restarting") && minecraftServer.getPlayerCount() == 0))
{
killServer(minecraftServer.getName(), minecraftServer.getPublicAddress(), "[KILLED] [FINISHED] " + minecraftServer.getName() + ":" + minecraftServer.getPublicAddress(), true);
continue;