From 0dec2b8946a121636306422231140b52cf68ec42 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 17 Nov 2020 09:31:28 +0100 Subject: [PATCH] Fixing... --- .../src/de/steamwar/fightsystem/utils/FightScoreboard.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/utils/FightScoreboard.java b/FightSystem_Main/src/de/steamwar/fightsystem/utils/FightScoreboard.java index 8ceb2be..dde9310 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/utils/FightScoreboard.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/utils/FightScoreboard.java @@ -42,7 +42,7 @@ public class FightScoreboard { private static final Set fullScoreboard = EnumSet.of(FightState.RUNNING, FightState.SPECTATE); private static int index = 0; private static String title = ""; - private static HashMap scores; + private static final HashMap scores = new HashMap<>(); public static void init(){ Bukkit.getScheduler().scheduleSyncRepeatingTask(FightSystem.getPlugin(), FightScoreboard::nextIndexDisplay, 0, 200); @@ -123,6 +123,7 @@ public class FightScoreboard { team = Fight.redTeam; if(index == 2) team = Fight.blueTeam; + scores.clear(); if(team != null) teamScoreboard(team); else