NPE log
This commit is contained in:
parent
9a79d0ede7
commit
a756bb88a2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user