From 0cad5fa3aed96e0f6e29c1ea00f3fc69b5688f05 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 1 Jul 2023 22:06:21 +0200 Subject: [PATCH] Fix /leader Signed-off-by: Lixfel --- FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java | 1 + .../src/de/steamwar/fightsystem/commands/LeaderCommand.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java b/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java index 039ae8e..e96e020 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/ArenaMode.java @@ -46,6 +46,7 @@ public enum ArenaMode { 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, CHECK))); + public static final Set ManualTeams = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(EVENT, REPLAY))); 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 1ed89e5..e215195 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.RankedEvent, FightState.Setup, "leader", this); + new StateDependentCommand(ArenaMode.ManualTeams, FightState.Setup, "leader", this); } @Override