MessageFormatter

Formats messages with the prefix and applies color styling.

All messages follow this format:

  • Prefix: LC, AQUA + BOLD

  • Message: Main text in GRAY

  • Placeholders: Text in {braces} highlighted in YELLOW

Functions

Link copied to clipboard
fun format(message: String, highlightPlaceholders: Boolean = true): Component

Formats a message with the standard prefix and gray text. Placeholders in {braces} are highlighted in yellow if highlightPlaceholders is true.

Link copied to clipboard
fun formatError(message: String): Component

Formats an error message with the prefix and red text.

Link copied to clipboard
fun formatSuccess(message: String): Component

Formats a success message with the prefix and green text.