This commit is contained in:
Chiss 2014-06-16 09:25:14 +10:00
parent 9a79d0ede7
commit a756bb88a2

View File

@ -95,7 +95,17 @@ public class GameScoreboard
if (teamName == null)
teamName = "";
_scoreboard.getTeam(Game.Manager.GetClients().Get(player).GetRank().Name + teamName).addPlayer(player);
String team = Game.Manager.GetClients().Get(player).GetRank().Name + teamName;
try
{
_scoreboard.getTeam(team).addPlayer(player);
}
catch (Exception e)
{
e.printStackTrace();
System.out.println("ERROR ADDING PLAYER TO TEAM: " + team);
}
}
public void ResetScore(String line)