Skip to content

Commit

Permalink
Change the way we handle text passthrough in ChatInput (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev authored Feb 14, 2024
1 parent 6e05a2e commit 0458f77
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 0458f77

Please sign in to comment.