fix: TeamManager unregister all Tems on startup
This commit is contained in:
parent
4def45e8cf
commit
fae0910759
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ public class TeamManager {
|
||||||
this.scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
|
this.scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
|
||||||
this.teams = new ArrayList<Team>();
|
this.teams = new ArrayList<Team>();
|
||||||
|
|
||||||
|
for (Team team : this.scoreboard.getTeams()) {
|
||||||
|
team.unregister();
|
||||||
|
}
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue