Display proper team in Arcade Lobby (Fixes bug where a player connecting will break scoreboards)

This commit is contained in:
Shaun Bennett 2014-08-07 18:44:27 -05:00
parent 5d89d1f728
commit 2fd7621a81

View File

@ -173,12 +173,16 @@ public class GameLobbyManager implements IPacketRunnable, Listener
}
}
}
if (resendToAll)
{
for (Player otherPlayer : UtilServer.getPlayers())
{
AddPlayerToScoreboards(otherPlayer, null);
String teamName = null;
if (Manager.GetGame() != null && Manager.GetGame().GetTeam(otherPlayer) != null)
teamName = Manager.GetGame().GetTeam(otherPlayer).GetName().toUpperCase();
AddPlayerToScoreboards(otherPlayer, teamName);
}
}
}
@ -1085,7 +1089,7 @@ public class GameLobbyManager implements IPacketRunnable, Listener
}
teamName = rankName + teamName;
for (Scoreboard scoreboard : GetScoreboards())
{
try