Don't show "Unknown" in the server menu when waiting for players or voting

This commit is contained in:
Sam 2018-07-05 14:27:42 +01:00 committed by Alexander Meech
parent e0ff1f733b
commit 4cc26e36b2
1 changed files with 4 additions and 2 deletions

View File

@ -1021,10 +1021,12 @@ public class ArcadeManager extends MiniPlugin implements IRelation
}
}
String map = "Unknown";
String game = "Waiting For Players";
String map = game;
if (_gameCreationManager.getVotingManager().isVoteInProgress())
{
game = _gameCreationManager.getNextGameType() == null ? "Voting" : _gameCreationManager.getNextGameType().getName();
map = "Voting";
}
else if (_game != null && _game.WorldData != null)
@ -1032,7 +1034,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
map = _game.WorldData.MapName;
}
String extrainformation = "|" + _serverConfig.ServerType + "|" + (_game == null ? "Unknown" : _game.GetName()) + "|" + map;
String extrainformation = "|" + _serverConfig.ServerType + "|" + game + "|" + map;
if (_gameHostManager.isPrivateServer() && _gameHostManager.hasPermission(Perm.FEATURED_SERVER))
{