SteamWar/FightSystem
Archiviert
13
1

Merge pull request 'Fixing...' (#206) from scoreboard-reimplement into master

Reviewed-by: YoyoNow <jwsteam@nidido.de>
Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Lixfel 2020-11-17 09:35:20 +01:00
Commit ec5fbcade6

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