From d34abf4f02082dcf9576af0af66e3bcc444003cb Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 17 Apr 2016 03:11:05 +1000 Subject: [PATCH] Disable colored chat --- .../java/com/plotsquared/bukkit/listeners/PlayerEvents.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index 9db361f56..27d78950f 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -603,8 +603,8 @@ public class PlayerEvents extends PlotListener implements Listener { } } } - String full = format.replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", sender).replace("%msg%", message); - full = ChatColor.translateAlternateColorCodes('&', full); + String partial = ChatColor.translateAlternateColorCodes('&',format.replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", sender)); + String full = partial.replace("%msg%", message); for (Player receiver : recipients) { receiver.sendMessage(full); }