From 159267935c8675436619c3543fd1acc9de565830 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 4 Mar 2022 21:49:09 +0100 Subject: [PATCH] Debug messages, reduce triple end to double end Signed-off-by: Lixfel --- .../de/steamwar/fightsystem/listener/LeaveableArena.java | 1 + .../src/de/steamwar/fightsystem/record/PacketProcessor.java | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/LeaveableArena.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/LeaveableArena.java index 0262f29..7dd79ba 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/LeaveableArena.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/LeaveableArena.java @@ -72,6 +72,7 @@ public class LeaveableArena implements Listener { boolean inArena = Config.ArenaRegion.in2dRegion(event.getTo()); boolean spectator = spectatorsInArena.containsKey(player); + System.out.println(inArena + " " + spectator); if(inArena && !spectator) { markInArena(player); diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java index 50e096f..afc3121 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java @@ -478,8 +478,10 @@ public class PacketProcessor { private void endReplay() { REntity.dieAll(); freezer.disable(); - FightSystem.getMessage().broadcast("REPLAY_ENDS"); - FightState.setFightState(FightState.SPECTATE); + if(!Config.replayserver()) { + FightSystem.getMessage().broadcast("REPLAY_ENDS"); + FightState.setFightState(FightState.SPECTATE); + } currentProcessor = null; }