Message Utils
object MessageUtils
This class contains a bunch of methods which make it very easy to translate '&'-based color codes in messages. You can colorize standard codes (&a, &b, &1, &2, etc), and even hex codes (abccdef), and also both in one method :)
Author
lokka30, Sullivan_Bognar, imDaniX
Since
1.0.0
Functions
Link copied to clipboard
Colorize a message, using '&' color codes - e.g. '&a' for ChatColor.GREEN. If the server is 1.16 or newer, then it will also translate hex codes - e.g. 'abcdef'.
Link copied to clipboard
This does NOT colorize hex codes, ONLY standard codes. This translated all standard codes in a message. Standard codes are prefixed by '&', e.g. '&a'.