The toMotd method of ChatMessage uses §#rrggbb notation for hex colors, which is non-standard. When §#123456a is rendered by the notchian client, it appears as 123456a (because the character after a section sign always gets hidden, regardless of whether it is a valid color code). Please consider using the color code of the nearest color instead. Also, for toAnsi you should consider not wrapping toMotd if you want it to support hex colors. A problem caused by toAnsi wrapping toMotd and handling §#rrggbb hex colors is that it causes messages such as {"text":"§#123456a"} to get colored (such messages are uncommon, but they can exist).
The
toMotd
method ofChatMessage
uses§#rrggbb
notation for hex colors, which is non-standard. When§#123456a
is rendered by the notchian client, it appears as123456a
(because the character after a section sign always gets hidden, regardless of whether it is a valid color code). Please consider using the color code of the nearest color instead. Also, fortoAnsi
you should consider not wrappingtoMotd
if you want it to support hex colors. A problem caused bytoAnsi
wrappingtoMotd
and handling§#rrggbb
hex colors is that it causes messages such as{"text":"§#123456a"}
to get colored (such messages are uncommon, but they can exist).