From 9da8e333602699c08277a54d1dc7c6baf297f3eb Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 25 Jun 2023 21:40:06 +0200 Subject: [PATCH] Fix checking Signed-off-by: Lixfel --- FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java | 2 +- .../src/de/steamwar/fightsystem/commands/LeaderCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java b/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java index ad4e2a3..039ae8e 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java @@ -45,7 +45,7 @@ public enum ArenaMode { public static final Set AntiEvent = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(EVENT))); public static final Set AntiTestCheckPrepare = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(TEST, CHECK, PREPARE))); public static final Set AntiPrepare = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(PREPARE))); - public static final Set VariableTeams = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(EVENT, REPLAY))); + public static final Set VariableTeams = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(EVENT, REPLAY, CHECK))); public static final Set RankedEvent = Collections.unmodifiableSet(EnumSet.of(EVENT, REPLAY)); public static final Set Restartable = Collections.unmodifiableSet(EnumSet.of(NORMAL, TEST)); public static final Set NotRestartable = Collections.unmodifiableSet(EnumSet.of(EVENT, REPLAY)); diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/commands/LeaderCommand.java b/FightSystem_Core/src/de/steamwar/fightsystem/commands/LeaderCommand.java index 4933fac..1ed89e5 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/commands/LeaderCommand.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/commands/LeaderCommand.java @@ -34,7 +34,7 @@ import org.bukkit.entity.Player; public class LeaderCommand implements CommandExecutor { public LeaderCommand() { - new StateDependentCommand(ArenaMode.VariableTeams, FightState.Setup, "leader", this); + new StateDependentCommand(ArenaMode.RankedEvent, FightState.Setup, "leader", this); } @Override