Fix null ServerGroup uptimes value for MPSes
This commit is contained in:
parent
1a2e0df6ca
commit
a0847b8d1a
@ -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()
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user