Hello, How can i use color codes or hex in a more easier way instead of:
player.sendMessage(Component.text("test").color(NamedTextColor.COLOR));
Because in Spigot i used to use this:
public static String color(String text){
return ChatColor.translateAlternateColorCodes('&', text);
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.