From 2575b3f9c0ed7ee9667eef437431e9cd12d2f16d Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 28 Nov 2014 19:59:41 +0000 Subject: [PATCH] Remove extra color codes at the start from converted json chat --- src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java index 58ff7d963b..844bf6a725 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java +++ b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java @@ -154,7 +154,7 @@ public final class CraftChatMessage { } out.append(c.getText()); } - return out.toString(); + return out.toString().replaceFirst("^(ยง0)*", ""); } private CraftChatMessage() {