Fix servers not knowning what game they were runnning

This commit is contained in:
Sam 2018-07-05 14:55:32 +01:00 committed by Alexander Meech
parent 4cc26e36b2
commit 1352715a77
1 changed files with 6 additions and 1 deletions

View File

@ -1029,7 +1029,12 @@ public class ArcadeManager extends MiniPlugin implements IRelation
game = _gameCreationManager.getNextGameType() == null ? "Voting" : _gameCreationManager.getNextGameType().getName();
map = "Voting";
}
else if (_game != null && _game.WorldData != null)
else if (!_serverConfig.GameVoting && !_serverConfig.GameList.isEmpty())
{
game = _serverConfig.GameList.get(0).getName();
}
if (_game != null && _game.WorldData != null)
{
map = _game.WorldData.MapName;
}