From fae091075985f928f8852facb41c4e79e8f8079e Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 15 May 2020 12:22:05 +0200 Subject: [PATCH] fix: TeamManager unregister all Tems on startup --- .../main/java/de/cliffbreak/varo/managers/TeamManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/varo/src/main/java/de/cliffbreak/varo/managers/TeamManager.java b/varo/src/main/java/de/cliffbreak/varo/managers/TeamManager.java index 3aa4b4b..9e9e09a 100644 --- a/varo/src/main/java/de/cliffbreak/varo/managers/TeamManager.java +++ b/varo/src/main/java/de/cliffbreak/varo/managers/TeamManager.java @@ -35,6 +35,10 @@ public class TeamManager { this.scoreboard = Bukkit.getScoreboardManager().getMainScoreboard(); this.teams = new ArrayList(); + for (Team team : this.scoreboard.getTeams()) { + team.unregister(); + } + this.init(); }