Fix the crash with teams not being cleared
You forgot to actually add the team to the list of teams...
This commit is contained in:
parent
3733ecf628
commit
548b2f2c60
@ -67,6 +67,7 @@ public class Scoreboard
|
||||
{
|
||||
Preconditions.checkNotNull( team, "team" );
|
||||
Preconditions.checkArgument( !teams.containsKey( team.getName() ), "Team %s already exists in this scoreboard", team.getName() );
|
||||
teams.put( team.getName(), team );
|
||||
}
|
||||
|
||||
public Team getTeam(String name)
|
||||
|
Loading…
Reference in New Issue
Block a user