From 548b2f2c60f98ed11b43236ab32e120370ed4c71 Mon Sep 17 00:00:00 2001 From: Robin Lambertz Date: Tue, 9 Apr 2013 01:23:08 +0200 Subject: [PATCH] Fix the crash with teams not being cleared You forgot to actually add the team to the list of teams... --- api/src/main/java/net/md_5/bungee/api/scoreboard/Scoreboard.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/main/java/net/md_5/bungee/api/scoreboard/Scoreboard.java b/api/src/main/java/net/md_5/bungee/api/scoreboard/Scoreboard.java index 2441a1a4..4ddd878b 100644 --- a/api/src/main/java/net/md_5/bungee/api/scoreboard/Scoreboard.java +++ b/api/src/main/java/net/md_5/bungee/api/scoreboard/Scoreboard.java @@ -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)