getMessage

fun getMessage(key: String, vararg params: Component): @NotNull TranslatableComponent

Retrieves a translatable message as a TranslatableComponent.

Return

The message as a translatable TranslatableComponent.

Parameters

key

The key of the message in the resource bundle.

params

Optional parameters to format the message.