From 7599ba1851eb27c782401ad6dec1e1e112754159 Mon Sep 17 00:00:00 2001 From: Daniel Walsh Date: Sun, 11 Feb 2024 19:07:09 +0000 Subject: [PATCH] Don't convert from MC special color code -> & in ChatInput, pass through the raw message --- .../io/github/bakedlibs/dough/chat/ChatInputListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dough-chat/src/main/java/io/github/bakedlibs/dough/chat/ChatInputListener.java b/dough-chat/src/main/java/io/github/bakedlibs/dough/chat/ChatInputListener.java index 8f03dcce..e3480f86 100644 --- a/dough-chat/src/main/java/io/github/bakedlibs/dough/chat/ChatInputListener.java +++ b/dough-chat/src/main/java/io/github/bakedlibs/dough/chat/ChatInputListener.java @@ -7,7 +7,6 @@ import java.util.Set; import java.util.UUID; -import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.EventHandler; @@ -56,8 +55,7 @@ public void onKick(PlayerKickEvent e) { @EventHandler(priority = EventPriority.LOWEST) public void onChat(AsyncPlayerChatEvent e) { - String msg = e.getMessage().replace(ChatColor.COLOR_CHAR, '&'); - checkInput(e, e.getPlayer(), msg); + checkInput(e, e.getPlayer(), e.getMessage()); } @EventHandler