From 6b95d595cf8d406a7cff77c3784fc8c3a2788376 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 19 Jul 2020 08:44:42 +1000 Subject: [PATCH] SPIGOT-6001: Hex colors format differently to traditional colours --- 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 a423e3bf39..bfeea111b6 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java +++ b/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) {