Merge pull request #258 from roblabla/patch-2
Fix the crash with teams not being cleared
This commit is contained in:
commit
d4f60e65c3
@ -67,6 +67,7 @@ public class Scoreboard
|
|||||||
{
|
{
|
||||||
Preconditions.checkNotNull( team, "team" );
|
Preconditions.checkNotNull( team, "team" );
|
||||||
Preconditions.checkArgument( !teams.containsKey( team.getName() ), "Team %s already exists in this scoreboard", team.getName() );
|
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)
|
public Team getTeam(String name)
|
||||||
|
Loading…
Reference in New Issue
Block a user