Skip to content

Commit

Permalink
Don't convert from MC special color code -> & in ChatInput, pass thro…
Browse files Browse the repository at this point in the history
…ugh the raw message
  • Loading branch information
WalshyDev committed Feb 14, 2024
1 parent 6e05a2e commit 7599ba1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7599ba1

Please sign in to comment.