diff --git a/plugin/src/main/java/io/github/pronze/sba/listener/GameChatListener.java b/plugin/src/main/java/io/github/pronze/sba/listener/GameChatListener.java index 5f5444f9..14c475c5 100644 --- a/plugin/src/main/java/io/github/pronze/sba/listener/GameChatListener.java +++ b/plugin/src/main/java/io/github/pronze/sba/listener/GameChatListener.java @@ -65,10 +65,12 @@ public void onPlayerChat(AsyncPlayerChatEvent event) { } var colorName = game.getTeamOfPlayer(player).getColor().name().toUpperCase(); + var teamName = game.getTeamOfPlayer(player).getName(); var color = TeamColor.fromApiColor(game.getTeamOfPlayer(player).getColor()).chatColor.toString(); format = format .replace("%color%", color) - .replace("%team%", colorName); + .replace("%color_name%", colorName) + .replace("%team%", teamName); } var message = event.getMessage().replace(allChatPrefix, "");