From f66b42662fb99d2c39aec6f2b06a4292c499c116 Mon Sep 17 00:00:00 2001 From: sauilitired Date: Sun, 26 Jul 2015 14:03:34 +0200 Subject: [PATCH] Fixes #453 --- .../com/intellectualcrafters/plot/listeners/ChatListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/intellectualcrafters/plot/listeners/ChatListener.java b/src/main/java/com/intellectualcrafters/plot/listeners/ChatListener.java index a550ef556..466132852 100644 --- a/src/main/java/com/intellectualcrafters/plot/listeners/ChatListener.java +++ b/src/main/java/com/intellectualcrafters/plot/listeners/ChatListener.java @@ -55,7 +55,7 @@ public class ChatListener implements Listener { recipients.add(p); } } - format = format.replaceAll("%plot_id%", id.x + ";" + id.y).replaceAll("%sender%", sender).replaceAll("%msg%", message); + format = format.replaceAll("%plot_id%", id.x + ";" + id.y).replaceAll("%sender%", sender).replaceAll("%msg%", message.replaceAll("([%]{1})", "%%")); format = ChatColor.translateAlternateColorCodes('&', format); event.setFormat(format); }