From 918f3096253acb2a14ed436b0954e6a0cf5cb2f9 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 18 Jan 2024 23:48:46 +0100 Subject: [PATCH] Join request with leader names instead of team names Signed-off-by: Lixfel --- FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java b/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java index 438bd1a..b2933bd 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java @@ -50,7 +50,7 @@ public class GUI { @SuppressWarnings("deprecation") private static void addTeamRequest(Player p, SWInventory inv, int pos, FightTeam team) { byte colorCode = ColorConverter.chat2dye(team.getColor()).getDyeData(); - inv.setItem(pos, SWItem.getDye(colorCode), colorCode, msg.parse("JOIN_REQUEST_TEAM", p, team.getColoredName()), click -> { + inv.setItem(pos, SWItem.getDye(colorCode), colorCode, msg.parse("JOIN_REQUEST_TEAM", p, team.getColor() + team.getLeader().getEntity().getName()), click -> { p.closeInventory(); new JoinRequest(p, team); });