MessageColor

Utility object for handling color-related functionalities for messages.

This object provides methods to translate color codes and strip color codes from strings.

Functions

Link copied to clipboard
fun color(text: String): String

Converts color codes in the text using '&' to the Minecraft-compatible format.

Link copied to clipboard
fun strip(text: String): String

Strips color codes from the given string.