Package xyz.srnyx.annoyingapi.options
Class MessagesOptions.MessageKeys
- java.lang.Object
-
- xyz.srnyx.javautilities.parents.Stringable
-
- xyz.srnyx.annoyingapi.options.MessagesOptions.MessageKeys
-
- Enclosing class:
- MessagesOptions
public static class MessagesOptions.MessageKeys extends xyz.srnyx.javautilities.parents.StringableA class to hold the different defaultAnnoyingPlugin.messageskeys
-
-
Field Summary
Fields Modifier and Type Field Description @NotNull java.lang.StringdisabledCommandOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "disabled command" message@NotNull java.lang.StringformatOPTIONALTheAnnoyingPlugin.messageskey for the plugin's format@NotNull java.lang.StringglobalPlaceholdersOPTIONALTheAnnoyingPlugin.messageskey for the plugin's global placeholders@NotNull java.lang.StringinvalidArgumentOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid argument" message@NotNull java.lang.StringinvalidArgumentsOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid arguments" message@NotNull java.lang.StringnoPermissionOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "no permission" message@NotNull java.lang.StringplayerOnlyOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "player-only" message@NotNull java.lang.StringsplitterJsonOPTIONALTheAnnoyingPlugin.messageskey for the plugin's JSON component splitter@NotNull java.lang.StringsplitterPlaceholderOPTIONALTheAnnoyingPlugin.messageskey for the plugin's placeholder component splitter@NotNull java.lang.StringupdateAvailableOPTIONALThe key for the message sent in the console when an update is available for the plugin
-
Constructor Summary
Constructors Constructor Description MessageKeys()Creates a newMessagesOptions.MessageKeyswith the default values
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MessagesOptions.MessageKeysdisabledCommand(@NotNull java.lang.String disabledCommand)SetsdisabledCommand@NotNull MessagesOptions.MessageKeysformat(@NotNull java.lang.String format)Setsformat@NotNull MessagesOptions.MessageKeysglobalPlaceholders(@NotNull java.lang.String globalPlaceholders)SetsglobalPlaceholders@NotNull MessagesOptions.MessageKeysinvalidArgument(@NotNull java.lang.String invalidArgument)SetsinvalidArgument@NotNull MessagesOptions.MessageKeysinvalidArguments(@NotNull java.lang.String invalidArguments)SetsinvalidArgumentsstatic MessagesOptions.MessageKeysload(@NotNull org.bukkit.configuration.ConfigurationSection section)Loads theMessagesOptions.MessageKeysfrom the specifiedConfigurationSection@NotNull MessagesOptions.MessageKeysnoPermission(@NotNull java.lang.String noPermission)SetsnoPermission@NotNull MessagesOptions.MessageKeysplayerOnly(@NotNull java.lang.String playerOnly)SetsplayerOnly@NotNull MessagesOptions.MessageKeyssplitterJson(@NotNull java.lang.String splitterJson)SetssplitterJson@NotNull MessagesOptions.MessageKeyssplitterPlaceholder(@NotNull java.lang.String splitterPlaceholder)SetssplitterPlaceholder@NotNull MessagesOptions.MessageKeysupdateAvailable(@NotNull java.lang.String updateAvailable)SetsupdateAvailable
-
-
-
Field Detail
-
format
@NotNull public @NotNull java.lang.String format
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's format
-
globalPlaceholders
@NotNull public @NotNull java.lang.String globalPlaceholders
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's global placeholders- See Also:
AnnoyingPlugin.globalPlaceholders
-
splitterJson
@NotNull public @NotNull java.lang.String splitterJson
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's JSON component splitter
-
splitterPlaceholder
@NotNull public @NotNull java.lang.String splitterPlaceholder
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's placeholder component splitter
-
updateAvailable
@NotNull public @NotNull java.lang.String updateAvailable
OPTIONALThe key for the message sent in the console when an update is available for the plugin
-
noPermission
@NotNull public @NotNull java.lang.String noPermission
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "no permission" message
-
playerOnly
@NotNull public @NotNull java.lang.String playerOnly
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "player-only" message
-
invalidArgument
@NotNull public @NotNull java.lang.String invalidArgument
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid argument" messageThis should contain
%argument%for the invalid argument
-
invalidArguments
@NotNull public @NotNull java.lang.String invalidArguments
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid arguments" message
-
disabledCommand
@NotNull public @NotNull java.lang.String disabledCommand
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "disabled command" message
-
-
Constructor Detail
-
MessageKeys
public MessageKeys()
Creates a newMessagesOptions.MessageKeyswith the default values
-
-
Method Detail
-
load
@NotNull public static MessagesOptions.MessageKeys load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
Loads theMessagesOptions.MessageKeysfrom the specifiedConfigurationSection- Parameters:
section- the section to load theMessagesOptions.MessageKeysfrom- Returns:
- the loaded
MessagesOptions.MessageKeys
-
format
@NotNull public @NotNull MessagesOptions.MessageKeys format(@NotNull @NotNull java.lang.String format)
Setsformat- Parameters:
format- the newformat- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
globalPlaceholders
@NotNull public @NotNull MessagesOptions.MessageKeys globalPlaceholders(@NotNull @NotNull java.lang.String globalPlaceholders)
SetsglobalPlaceholders- Parameters:
globalPlaceholders- the newglobalPlaceholders- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
splitterJson
@NotNull public @NotNull MessagesOptions.MessageKeys splitterJson(@NotNull @NotNull java.lang.String splitterJson)
SetssplitterJson- Parameters:
splitterJson- the newsplitterJson- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
splitterPlaceholder
@NotNull public @NotNull MessagesOptions.MessageKeys splitterPlaceholder(@NotNull @NotNull java.lang.String splitterPlaceholder)
SetssplitterPlaceholder- Parameters:
splitterPlaceholder- the newsplitterPlaceholder- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
updateAvailable
@NotNull public @NotNull MessagesOptions.MessageKeys updateAvailable(@NotNull @NotNull java.lang.String updateAvailable)
SetsupdateAvailable- Parameters:
updateAvailable- the newupdateAvailable- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
noPermission
@NotNull public @NotNull MessagesOptions.MessageKeys noPermission(@NotNull @NotNull java.lang.String noPermission)
SetsnoPermission- Parameters:
noPermission- the newnoPermission- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
playerOnly
@NotNull public @NotNull MessagesOptions.MessageKeys playerOnly(@NotNull @NotNull java.lang.String playerOnly)
SetsplayerOnly- Parameters:
playerOnly- the newplayerOnly- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
invalidArgument
@NotNull public @NotNull MessagesOptions.MessageKeys invalidArgument(@NotNull @NotNull java.lang.String invalidArgument)
SetsinvalidArgument- Parameters:
invalidArgument- the newinvalidArgument- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
invalidArguments
@NotNull public @NotNull MessagesOptions.MessageKeys invalidArguments(@NotNull @NotNull java.lang.String invalidArguments)
SetsinvalidArguments- Parameters:
invalidArguments- the newinvalidArguments- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
disabledCommand
@NotNull public @NotNull MessagesOptions.MessageKeys disabledCommand(@NotNull @NotNull java.lang.String disabledCommand)
SetsdisabledCommand- Parameters:
disabledCommand- the newdisabledCommand- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
-