From 95dbba65c7d96338c198d7e0ea1e9f6fb4570ce6 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 19 Jul 2020 08:44:42 +1000 Subject: [PATCH] SPIGOT-6001: Hex colors format differently to traditional colours By: md_5 --- .../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 a423e3bf39..bfeea111b6 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 @@ -87,7 +87,7 @@ public final class CraftChatMessage { hex.append(c); if (hex.length() == 7) { - modifier = modifier.setColor(ChatHexColor.a(hex.toString())); + modifier = RESET.setColor(ChatHexColor.a(hex.toString())); hex = null; } } else if (format.isFormat() && format != EnumChatFormat.RESET) {