diff --git a/src/main/java/net/minestom/server/chat/ChatColor.java b/src/main/java/net/minestom/server/chat/ChatColor.java index a43e16f8f..4a4e5a710 100644 --- a/src/main/java/net/minestom/server/chat/ChatColor.java +++ b/src/main/java/net/minestom/server/chat/ChatColor.java @@ -262,10 +262,10 @@ public class ChatColor { // color or special code (white/red/reset/bold/etc...) code = codeName; } else { - // RGB color + // RGB color (special code not set) int color = (red & 0xFF) << 16 | (green & 0xFF) << 8 | blue & 0xFF; - code = "#"+Integer.toHexString(color); + code = Integer.toHexString(color); } return header + code + footer;