Added checks to restart UHC servers stuck in restarting mode.
This commit is contained in:
parent
0540168af7
commit
78a0aa7c96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user