From b6bbf7947350fbf846329a4bbbd3a1109087b599 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 4 Mar 2022 22:37:25 +0100 Subject: [PATCH] Post fight bar Signed-off-by: Lixfel --- .../de/steamwar/fightsystem/record/PacketProcessor.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java index 1f4e1bd..a1f02e2 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java @@ -152,6 +152,15 @@ public class PacketProcessor { winner = Fight.getRedTeam(); FightSystem.setSpectateState(winner, "Replay ends", message.getMsg(), message.getParams()); + if (winner != null) { + FightUI.getInstance().setBossbar(0.5, 0.5, + new Message("BAR_WIN", winner.getColoredName(), Fight.getBlueTeam().getColoredName(), Fight.getRedTeam().getColoredName(), ""), + new Message("BAR_WIN", winner.getColoredName(), Fight.getRedTeam().getColoredName(), Fight.getBlueTeam().getColoredName(), "")); + } else { + FightUI.getInstance().setBossbar(0.5, 0.5, + new Message("BAR_TIE", "", Fight.getBlueTeam().getColoredName(), Fight.getRedTeam().getColoredName()), + new Message("BAR_TIE", "", Fight.getRedTeam().getColoredName(), Fight.getBlueTeam().getColoredName())); + } }); }