public static class MessagesOptions.MessageKeys extends Stringable
AnnoyingPlugin.messages keys| Modifier and Type | Field and Description |
|---|---|
@NotNull java.lang.String |
disabledCommand
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "disabled command" message |
@NotNull java.lang.String |
format
OPTIONAL The AnnoyingPlugin.messages key for the plugin's format |
@NotNull java.lang.String |
globalPlaceholders
OPTIONAL The AnnoyingPlugin.messages key for the plugin's global placeholders |
@NotNull java.lang.String |
invalidArgument
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "invalid argument" message |
@NotNull java.lang.String |
invalidArguments
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "invalid arguments" message |
@NotNull java.lang.String |
noPermission
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "no permission" message |
@NotNull java.lang.String |
playerOnly
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "player-only" message |
@NotNull java.lang.String |
splitterJson
OPTIONAL The AnnoyingPlugin.messages key for the plugin's JSON component splitter |
@NotNull java.lang.String |
splitterPlaceholder
OPTIONAL The AnnoyingPlugin.messages key for the plugin's placeholder component splitter |
@NotNull java.lang.String |
updateAvailable
OPTIONAL The key for the message sent in the console when an update is available for the plugin |
| Constructor and Description |
|---|
MessageKeys()
Creates a new
MessagesOptions.MessageKeys with the default values |
| Modifier and Type | Method and Description |
|---|---|
@NotNull MessagesOptions.MessageKeys |
disabledCommand(@NotNull java.lang.String disabledCommand)
Sets
disabledCommand |
@NotNull MessagesOptions.MessageKeys |
format(@NotNull java.lang.String format)
Sets
format |
@NotNull MessagesOptions.MessageKeys |
globalPlaceholders(@NotNull java.lang.String globalPlaceholders)
Sets
globalPlaceholders |
@NotNull MessagesOptions.MessageKeys |
invalidArgument(@NotNull java.lang.String invalidArgument)
Sets
invalidArgument |
@NotNull MessagesOptions.MessageKeys |
invalidArguments(@NotNull java.lang.String invalidArguments)
Sets
invalidArguments |
static MessagesOptions.MessageKeys |
load(@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads the
MessagesOptions.MessageKeys from the specified ConfigurationSection |
@NotNull MessagesOptions.MessageKeys |
noPermission(@NotNull java.lang.String noPermission)
Sets
noPermission |
@NotNull MessagesOptions.MessageKeys |
playerOnly(@NotNull java.lang.String playerOnly)
Sets
playerOnly |
@NotNull MessagesOptions.MessageKeys |
splitterJson(@NotNull java.lang.String splitterJson)
Sets
splitterJson |
@NotNull MessagesOptions.MessageKeys |
splitterPlaceholder(@NotNull java.lang.String splitterPlaceholder)
Sets
splitterPlaceholder |
@NotNull MessagesOptions.MessageKeys |
updateAvailable(@NotNull java.lang.String updateAvailable)
Sets
updateAvailable |
toString, toString@NotNull public @NotNull java.lang.String format
OPTIONAL The AnnoyingPlugin.messages key for the plugin's format@NotNull public @NotNull java.lang.String globalPlaceholders
OPTIONAL The AnnoyingPlugin.messages key for the plugin's global placeholdersAnnoyingPlugin.globalPlaceholders@NotNull public @NotNull java.lang.String splitterJson
OPTIONAL The AnnoyingPlugin.messages key for the plugin's JSON component splitter@NotNull public @NotNull java.lang.String splitterPlaceholder
OPTIONAL The AnnoyingPlugin.messages key for the plugin's placeholder component splitter@NotNull public @NotNull java.lang.String updateAvailable
OPTIONAL The key for the message sent in the console when an update is available for the plugin@NotNull public @NotNull java.lang.String noPermission
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "no permission" message@NotNull public @NotNull java.lang.String playerOnly
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "player-only" message@NotNull public @NotNull java.lang.String invalidArgument
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "invalid argument" message
This should contain %argument% for the invalid argument
@NotNull public @NotNull java.lang.String invalidArguments
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "invalid arguments" message@NotNull public @NotNull java.lang.String disabledCommand
OPTIONAL The AnnoyingPlugin.messages key for the plugin's "disabled command" messagepublic MessageKeys()
MessagesOptions.MessageKeys with the default values@NotNull public static MessagesOptions.MessageKeys load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
MessagesOptions.MessageKeys from the specified ConfigurationSectionsection - the section to load the MessagesOptions.MessageKeys fromMessagesOptions.MessageKeys@NotNull public @NotNull MessagesOptions.MessageKeys format(@NotNull @NotNull java.lang.String format)
formatformat - the new formatMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys globalPlaceholders(@NotNull @NotNull java.lang.String globalPlaceholders)
globalPlaceholdersglobalPlaceholders - the new globalPlaceholdersMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys splitterJson(@NotNull @NotNull java.lang.String splitterJson)
splitterJsonsplitterJson - the new splitterJsonMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys splitterPlaceholder(@NotNull @NotNull java.lang.String splitterPlaceholder)
splitterPlaceholdersplitterPlaceholder - the new splitterPlaceholderMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys updateAvailable(@NotNull @NotNull java.lang.String updateAvailable)
updateAvailableupdateAvailable - the new updateAvailableMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys noPermission(@NotNull @NotNull java.lang.String noPermission)
noPermissionnoPermission - the new noPermissionMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys playerOnly(@NotNull @NotNull java.lang.String playerOnly)
playerOnlyplayerOnly - the new playerOnlyMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys invalidArgument(@NotNull @NotNull java.lang.String invalidArgument)
invalidArgumentinvalidArgument - the new invalidArgumentMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys invalidArguments(@NotNull @NotNull java.lang.String invalidArguments)
invalidArgumentsinvalidArguments - the new invalidArgumentsMessagesOptions.MessageKeys instance for chaining@NotNull public @NotNull MessagesOptions.MessageKeys disabledCommand(@NotNull @NotNull java.lang.String disabledCommand)
disabledCommanddisabledCommand - the new disabledCommandMessagesOptions.MessageKeys instance for chaining