12
1

Fixing... #206

Manuell gemergt
Lixfel hat 1 Commits von scoreboard-reimplement nach master 2020-11-17 09:35:21 +01:00 zusammengeführt

Datei anzeigen

@ -42,7 +42,7 @@ public class FightScoreboard {
private static final Set<FightState> fullScoreboard = EnumSet.of(FightState.RUNNING, FightState.SPECTATE);
private static int index = 0;
private static String title = "";
private static HashMap<String, Integer> scores;
private static final HashMap<String, Integer> 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