as String
open fun asString(@NotNull issuer: @NotNull CommandIssuer, @NotNull key: @NotNull MessageKeyProvider): String(source)
Returns a translated string for the given message key using the given command issuer.
Return
the translated string
Parameters
issuer
the issuer that requested the message
key
the key of the message to be translated
open fun asString(@NotNull player: @NotNull Player, @NotNull manager: @NotNull PaperCommandManager, @NotNull key: @NotNull MessageKeyProvider): String(source)
Returns a translated string for the given message key using the given player and plugin manager.
Return
the translated string
Parameters
player
the player for whom the message is translated
manager
the manager of the plugin
key
the key of the message to be translated
open fun asString(@NotNull manager: @NotNull PaperCommandManager, @NotNull key: @NotNull MessageKeyProvider): String(source)
Returns a translated string for the given message key using the given plugin manager.
Return
the translated string
Parameters
manager
the manager of the plugin
key
the key of the message to be translated