Adjusted limit on CC game.
This commit is contained in:
parent
80c17c789c
commit
4e0c91c26d
@ -40,11 +40,12 @@ public class ServerMonitor
|
||||
private static Logger _logger = Logger.getLogger("ServerMonitor");
|
||||
|
||||
private static int _totalPlayers = 0;
|
||||
private static Region _region;
|
||||
|
||||
public static void main (String args[])
|
||||
{
|
||||
Region region = !new File("eu.dat").exists() ? Region.US : Region.EU;
|
||||
_repository = ServerManager.getServerRepository(region); // Fetches and connects to server repo
|
||||
_region = !new File("eu.dat").exists() ? Region.US : Region.EU;
|
||||
_repository = ServerManager.getServerRepository(_region); // Fetches and connects to server repo
|
||||
|
||||
File logFile = new File("monitor.log");
|
||||
|
||||
@ -281,7 +282,14 @@ public class ServerMonitor
|
||||
}
|
||||
else if (serverGroup.getName().equalsIgnoreCase("Halloween"))
|
||||
{
|
||||
if (serverGroup.getServers().size() > 250)
|
||||
if (serverGroup.getServers().size() > (_region == Region.US ? 300 : 100))
|
||||
{
|
||||
serversToAdd = 0;
|
||||
}
|
||||
}
|
||||
else if (serverGroup.getName().equalsIgnoreCase("Christmas"))
|
||||
{
|
||||
if (serverGroup.getServers().size() > (_region == Region.US ? 300 : 100))
|
||||
{
|
||||
serversToAdd = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user