arkflame / CleanMOTD

Simple and light plugin to manage the motd of your server.
https://www.spigotmc.org/resources/58268/
MIT License
15 stars 14 forks source link

1.16 hex color support #3

Closed AfkF24 closed 3 years ago

AfkF24 commented 3 years ago

Could we get Minecraft's 1.16 hex color support? Seems like a great idea, especially for a MOTD plugin. Also having some extra color manipulation through rainbow and gradient colors for example sounds quite cool too.

Cheers

linsaftw commented 3 years ago

Hi, can you explain how to implement this? I've read some forums and it says that by using ChatColor.replaceAlternateColorCodes(...) it will work.

AfkF24 commented 3 years ago

Afaik, rgb and hex colors can be used through BungeeCord's ChatColor, so ChatColor#of(Color) and ChatColor#of(String). Haven't really messed around with hex colors at all, just saw some servers use them in MOTD's with fancy gradients and stuff.

linsaftw commented 3 years ago

Ok i will use the official ChatColor methods and see if that works for hexing.

linsaftw commented 3 years ago

CleanMotD.zip

Hi, please check if its fixed with this version. Re-open the issue if you still have problems.