From 03354992f24ebc91e78279cec0f260fe2d188b97 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 9 Apr 2022 16:33:57 +0200 Subject: [PATCH] Allow replay skip only the starter of the replay Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/commands/SkipCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/commands/SkipCommand.java b/FightSystem_Core/src/de/steamwar/fightsystem/commands/SkipCommand.java index 5bd30a4..ba99371 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/commands/SkipCommand.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/commands/SkipCommand.java @@ -21,6 +21,7 @@ package de.steamwar.fightsystem.commands; import de.steamwar.fightsystem.ArenaMode; import de.steamwar.fightsystem.Config; +import de.steamwar.fightsystem.fight.Fight; import de.steamwar.fightsystem.record.PacketProcessor; import de.steamwar.fightsystem.states.FightState; import de.steamwar.fightsystem.states.StateDependentCommand; @@ -42,7 +43,7 @@ public class SkipCommand implements CommandExecutor { } Player player = (Player) sender; - if(PacketProcessor.isReplaying()) { + if(PacketProcessor.isReplaying() && Fight.getBlueTeam().getDesignatedLeader() == player.getUniqueId()) { PacketProcessor.currentReplay().skipToSubtitle(); } else { Commands.toggleSkip(player); -- 2.39.2