diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-11-28 19:59:41 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-11-28 19:59:41 +0000 |
commit | 2575b3f9c0ed7ee9667eef437431e9cd12d2f16d (patch) | |
tree | c4414f0c116af14a6eae8804183a81196f26e1bd /src/main | |
parent | 8768831c56147b6a8a054bd13b6d5b2b90e5bfcf (diff) | |
download | craftbukkit-2575b3f9c0ed7ee9667eef437431e9cd12d2f16d.tar craftbukkit-2575b3f9c0ed7ee9667eef437431e9cd12d2f16d.tar.gz craftbukkit-2575b3f9c0ed7ee9667eef437431e9cd12d2f16d.tar.lz craftbukkit-2575b3f9c0ed7ee9667eef437431e9cd12d2f16d.tar.xz craftbukkit-2575b3f9c0ed7ee9667eef437431e9cd12d2f16d.zip |
Remove extra color codes at the start from converted json chat
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java index 58ff7d96..844bf6a7 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() { |