SteamWar/FightSystem
Archiviert
13
1

Only one spectate state init

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-07-07 19:36:56 +02:00
Ursprung b5bcea06b7
Commit 7e66c9895c

Datei anzeigen

@ -196,6 +196,8 @@ public class FightSystem extends JavaPlugin {
} }
public static void setSpectateState(FightTeam winFightTeam, String windescription) { public static void setSpectateState(FightTeam winFightTeam, String windescription) {
if(fightState == FightState.SPECTATE)
return;
setFightState(FightState.SPECTATE); setFightState(FightState.SPECTATE);
setAllPlayersGM(GameMode.SPECTATOR); setAllPlayersGM(GameMode.SPECTATOR);