format

fun format(message: String, highlightPlaceholders: Boolean = true): Component(source)

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

Return

A formatted Component with the prefix

Parameters

message

The message text to format

highlightPlaceholders

Whether to highlight {placeholder} text in yellow