From 520089d10e767132dd766b211b3c6b9bb9a6fa1e Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 28 Nov 2014 19:59:41 +0000 Subject: [PATCH] Remove extra color codes at the start from converted json chat By: Thinkofdeath --- .../main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java index 58ff7d963b..844bf6a725 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java +++ b/paper-server/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() {