MessageUtils

open class MessageUtils(source)

Utility class for message related operations.

Functions

Link copied to clipboard
open fun asString(@NotNull issuer: @NotNull CommandIssuer, @NotNull key: @NotNull MessageKeyProvider): String
Returns a translated string for the given message key using the given command issuer.
open fun asString(@NotNull manager: @NotNull PaperCommandManager, @NotNull key: @NotNull MessageKeyProvider): String
Returns a translated string for the given message key using the given plugin manager.
open fun asString(@NotNull player: @NotNull Player, @NotNull manager: @NotNull PaperCommandManager, @NotNull key: @NotNull MessageKeyProvider): String
Returns a translated string for the given message key using the given player and plugin manager.