Don't show "Unknown" in the server menu when waiting for players or voting
This commit is contained in:
parent
e0ff1f733b
commit
4cc26e36b2
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue