SteamWar/FightSystem
Archiviert
13
1
Dieser Commit ist enthalten in:
Chaoscaot 2020-11-17 09:31:28 +01:00
Ursprung e460b04a67
Commit 0dec2b8946

Datei anzeigen

@ -42,7 +42,7 @@ public class FightScoreboard {
private static final Set<FightState> fullScoreboard = EnumSet.of(FightState.RUNNING, FightState.SPECTATE); private static final Set<FightState> fullScoreboard = EnumSet.of(FightState.RUNNING, FightState.SPECTATE);
private static int index = 0; private static int index = 0;
private static String title = ""; private static String title = "";
private static HashMap<String, Integer> scores; private static final HashMap<String, Integer> scores = new HashMap<>();
public static void init(){ public static void init(){
Bukkit.getScheduler().scheduleSyncRepeatingTask(FightSystem.getPlugin(), FightScoreboard::nextIndexDisplay, 0, 200); Bukkit.getScheduler().scheduleSyncRepeatingTask(FightSystem.getPlugin(), FightScoreboard::nextIndexDisplay, 0, 200);
@ -123,6 +123,7 @@ public class FightScoreboard {
team = Fight.redTeam; team = Fight.redTeam;
if(index == 2) if(index == 2)
team = Fight.blueTeam; team = Fight.blueTeam;
scores.clear();
if(team != null) if(team != null)
teamScoreboard(team); teamScoreboard(team);
else else