diff --git a/src/main/java/me/dadus33/chatitem/chatmanager/v2/ChatListener.java b/src/main/java/me/dadus33/chatitem/chatmanager/v2/ChatListener.java index ab22db0..ec7c317 100644 --- a/src/main/java/me/dadus33/chatitem/chatmanager/v2/ChatListener.java +++ b/src/main/java/me/dadus33/chatitem/chatmanager/v2/ChatListener.java @@ -89,7 +89,7 @@ public void onChat(AsyncPlayerChatEvent e) { DiscordSrvSupport.sendChatMessage(p, defMsg.replace(ChatManager.SEPARATOR + "", itemName), e); Set recipients = e.getRecipients().isEmpty() ? new HashSet<>(Bukkit.getOnlinePlayers()) : e.getRecipients(); ChatItem.debug("Msg: " + msg.replace(ChatColor.COLOR_CHAR, '&') + ", format: " + format + " to " + recipients.size() + " players"); - recipients.forEach((pl) -> ChatItem.getPlatform().sendMessage(pl, p, action, msg)); + recipients.forEach((pl) -> ChatItem.getPlatform().sendMessage(pl, p, action, ChatItem.replace(p, msg))); if (c.cooldown > 0 && !p.hasPermission("chatitem.ignore-cooldown")) ChatManager.applyCooldown(p); }