Skip to content

Commit 0458f77

Browse files
authored
Change the way we handle text passthrough in ChatInput (#250)
1 parent 6e05a2e commit 0458f77

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dough-chat/src/main/java/io/github/bakedlibs/dough/chat/ChatInputListener.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import java.util.Set;
88
import java.util.UUID;
99

10-
import org.bukkit.ChatColor;
1110
import org.bukkit.entity.Player;
1211
import org.bukkit.event.Cancellable;
1312
import org.bukkit.event.EventHandler;
@@ -56,8 +55,7 @@ public void onKick(PlayerKickEvent e) {
5655

5756
@EventHandler(priority = EventPriority.LOWEST)
5857
public void onChat(AsyncPlayerChatEvent e) {
59-
String msg = e.getMessage().replace(ChatColor.COLOR_CHAR, '&');
60-
checkInput(e, e.getPlayer(), msg);
58+
checkInput(e, e.getPlayer(), e.getMessage());
6159
}
6260

6361
@EventHandler

0 commit comments

Comments
 (0)