From 7e66c9895c5d2f639d8e16f6e861058bcecdbed2 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 7 Jul 2020 19:36:56 +0200 Subject: [PATCH] Only one spectate state init Signed-off-by: Lixfel --- FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java b/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java index ca767fa..ed20bc0 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java @@ -196,6 +196,8 @@ public class FightSystem extends JavaPlugin { } public static void setSpectateState(FightTeam winFightTeam, String windescription) { + if(fightState == FightState.SPECTATE) + return; setFightState(FightState.SPECTATE); setAllPlayersGM(GameMode.SPECTATOR);