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.Stringable
A class to hold the different default
AnnoyingPlugin.messages keys-
Field Summary
FieldsModifier and TypeFieldDescription@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "disabled command" message@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's format@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's global placeholders@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid argument" message@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid arguments" message@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "no permission" message@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's "player-only" message@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's JSON component splitter@NotNull StringOPTIONALTheAnnoyingPlugin.messageskey for the plugin's placeholder component splitter@NotNull StringOPTIONALThe key for the message sent in the console when an update is available for the plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull MessagesOptions.MessageKeysdisabledCommand(@NotNull String disabledCommand) SetsdisabledCommand@NotNull MessagesOptions.MessageKeysSetsformat@NotNull MessagesOptions.MessageKeysglobalPlaceholders(@NotNull String globalPlaceholders) SetsglobalPlaceholders@NotNull MessagesOptions.MessageKeysinvalidArgument(@NotNull String invalidArgument) SetsinvalidArgument@NotNull MessagesOptions.MessageKeysinvalidArguments(@NotNull String invalidArguments) SetsinvalidArgumentsstatic MessagesOptions.MessageKeysload(@NotNull org.bukkit.configuration.ConfigurationSection section) Loads theMessagesOptions.MessageKeysfrom the specifiedConfigurationSection@NotNull MessagesOptions.MessageKeysnoPermission(@NotNull String noPermission) SetsnoPermission@NotNull MessagesOptions.MessageKeysplayerOnly(@NotNull String playerOnly) SetsplayerOnly@NotNull MessagesOptions.MessageKeyssplitterJson(@NotNull String splitterJson) SetssplitterJson@NotNull MessagesOptions.MessageKeyssplitterPlaceholder(@NotNull String splitterPlaceholder) SetssplitterPlaceholder@NotNull MessagesOptions.MessageKeysupdateAvailable(@NotNull String updateAvailable) SetsupdateAvailableMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toString
-
Field Details
-
format
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's format -
globalPlaceholders
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's global placeholders- See Also:
-
splitterJson
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's JSON component splitter -
splitterPlaceholder
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's placeholder component splitter -
updateAvailable
OPTIONALThe key for the message sent in the console when an update is available for the plugin -
noPermission
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "no permission" message -
playerOnly
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "player-only" message -
invalidArgument
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid argument" messageThis should contain
%argument%for the invalid argument -
invalidArguments
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "invalid arguments" message -
disabledCommand
OPTIONALTheAnnoyingPlugin.messageskey for the plugin's "disabled command" message
-
-
Constructor Details
-
MessageKeys
public MessageKeys()Creates a newMessagesOptions.MessageKeyswith the default values
-
-
Method Details
-
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
Setsformat- Parameters:
format- the newformat- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
globalPlaceholders
@NotNull public @NotNull MessagesOptions.MessageKeys globalPlaceholders(@NotNull @NotNull String globalPlaceholders) SetsglobalPlaceholders- Parameters:
globalPlaceholders- the newglobalPlaceholders- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
splitterJson
@NotNull public @NotNull MessagesOptions.MessageKeys splitterJson(@NotNull @NotNull String splitterJson) SetssplitterJson- Parameters:
splitterJson- the newsplitterJson- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
splitterPlaceholder
@NotNull public @NotNull MessagesOptions.MessageKeys splitterPlaceholder(@NotNull @NotNull String splitterPlaceholder) SetssplitterPlaceholder- Parameters:
splitterPlaceholder- the newsplitterPlaceholder- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
updateAvailable
@NotNull public @NotNull MessagesOptions.MessageKeys updateAvailable(@NotNull @NotNull String updateAvailable) SetsupdateAvailable- Parameters:
updateAvailable- the newupdateAvailable- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
noPermission
@NotNull public @NotNull MessagesOptions.MessageKeys noPermission(@NotNull @NotNull String noPermission) SetsnoPermission- Parameters:
noPermission- the newnoPermission- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
playerOnly
@NotNull public @NotNull MessagesOptions.MessageKeys playerOnly(@NotNull @NotNull String playerOnly) SetsplayerOnly- Parameters:
playerOnly- the newplayerOnly- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
invalidArgument
@NotNull public @NotNull MessagesOptions.MessageKeys invalidArgument(@NotNull @NotNull String invalidArgument) SetsinvalidArgument- Parameters:
invalidArgument- the newinvalidArgument- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
invalidArguments
@NotNull public @NotNull MessagesOptions.MessageKeys invalidArguments(@NotNull @NotNull String invalidArguments) SetsinvalidArguments- Parameters:
invalidArguments- the newinvalidArguments- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-
disabledCommand
@NotNull public @NotNull MessagesOptions.MessageKeys disabledCommand(@NotNull @NotNull String disabledCommand) SetsdisabledCommand- Parameters:
disabledCommand- the newdisabledCommand- Returns:
- the
MessagesOptions.MessageKeysinstance for chaining
-