From 10bf03f81b2b28e4c7bca655ada64882c53f67b3 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); }