Fix null ServerGroup uptimes value for MPSes

This commit is contained in:
cnr 2016-07-14 08:08:24 -05:00
parent 1a2e0df6ca
commit a0847b8d1a
3 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@ public class PersonalServerManager extends MiniPlugin
}
}
final ServerGroup serverGroup = new ServerGroup(serverName, serverName, host.getName(), ram, cpu, 1, 0, UtilMath.random.nextInt(250) + 19999, null, true, "arcade.zip", "Arcade.jar", "plugins/Arcade/", minPlayers, maxPlayers,
final ServerGroup serverGroup = new ServerGroup(serverName, serverName, host.getName(), ram, cpu, 1, 0, UtilMath.random.nextInt(250) + 19999, "", true, "arcade.zip", "Arcade.jar", "plugins/Arcade/", minPlayers, maxPlayers,
true, false, false, games, "", "", "Player", true, event, false, true, false, true, true, false, false, false, false, true, true, true, false, false, "", _us ? Region.US : Region.EU, "", "", "", "");
getPlugin().getServer().getScheduler().runTaskAsynchronously(getPlugin(), new Runnable()

View File

@ -24,7 +24,7 @@ public class ServerGroup
private int _requiredTotalServers;
private int _requiredJoinableServers;
private String _uptimes;
private String _uptimes = "";
private boolean _arcadeGroup;
private String _worldZip;

View File

@ -169,7 +169,7 @@ public class ServerUptimeManager implements Listener
public void updateDates(String uptimes)
{
System.out.println(uptimes);
if (Manager.GetServerConfig().Uptimes == null)
if (Manager.GetServerConfig().Uptimes.isEmpty())
{
_enabled = false;
return;