SteamWar/FightSystem
Archiviert
13
1

Post fight bar
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-04 22:37:25 +01:00
Ursprung f204fff777
Commit b6bbf79473

Datei anzeigen

@ -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()));
}
});
}