Package me.efekos.simpler.config
Class MessageConfiguration
java.lang.Object
me.efekos.simpler.config.MessageConfiguration
Configuration for default messages sent by Simpler through handling, such as argument correction or permission messages.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class that will hopefully help you create a message configuration. -
Field Summary
Modifier and TypeFieldDescriptionfinal String
Appears when the player provides an invalid value toListArgument
.final String
No-Permission message.final String
Appears when the player provides a number bigger thanInteger.MAX_VALUE
toIntegerArgument
.final String
Appears when the player provides a number smaller thanInteger.MIN_VALUE
toIntegerArgument
.final String
Appears when the player provides a number bigger than maximum value sett inIntegerArgument(String, ArgumentPriority, int, int)
.final String
Appears when the player provides a number smaller than minimum value sett inIntegerArgument(String, ArgumentPriority, int, int)
.final String
Appears when the player provides a NaN to aIntegerArgument
.final String
Only-Player message.final String
Appears as the name of the button that leads the player to the next page of aPaginatedMenu
.final String
Appears as the name of the item that indicates the current page in aPaginatedMenu
.final String
Appears as the name of the button that leads the player to the previous page of aPaginatedMenu
.final String
Appears when the player provides an invalid player name toPlayerArgument
.final String
Appears when the player provides a string longer than maximum length sett inStringArgument(String, ArgumentPriority, int, int)
.final String
Appears when the player provides a string shorter than minimum length sett inStringArgument(String, ArgumentPriority, int, int)
.final String
Usage message.final String
A reason text that is provided by Simpler. -
Method Summary
-
Field Details
-
NO_PERMISSION
No-Permission message. Appears when the player tried to execute aBaseCommand
or aSubCommand
, but he doesn't have the permission for it. -
USAGE
Usage message. Appears when the player used a command wrong according to itsSyntax
. -
ONLY_PLAYER
Only-Player message. Appears when the console tried to use a command that is player-only. -
USAGE_REASON_REQUIRED
A reason text that is provided by Simpler. Appears when the player didn't provide aArgumentPriority.REQUIRED
argument. -
LIST_ARG_NIL
Appears when the player provides an invalid value toListArgument
. -
NUM_ARG_IMIN
Appears when the player provides a number smaller thanInteger.MIN_VALUE
toIntegerArgument
. -
NUM_ARG_IMAX
Appears when the player provides a number bigger thanInteger.MAX_VALUE
toIntegerArgument
. -
NUM_ARG_MIN
Appears when the player provides a number smaller than minimum value sett inIntegerArgument(String, ArgumentPriority, int, int)
. -
NUM_ARG_MAX
Appears when the player provides a number bigger than maximum value sett inIntegerArgument(String, ArgumentPriority, int, int)
. -
NUM_ARG_NAN
Appears when the player provides a NaN to aIntegerArgument
. -
PLR_ARG_NAP
Appears when the player provides an invalid player name toPlayerArgument
. -
STR_ARG_SHT
Appears when the player provides a string shorter than minimum length sett inStringArgument(String, ArgumentPriority, int, int)
. -
STR_ARG_LNG
Appears when the player provides a string longer than maximum length sett inStringArgument(String, ArgumentPriority, int, int)
. -
PAGINATED_MENU_NEXT
Appears as the name of the button that leads the player to the next page of aPaginatedMenu
. -
PAGINATED_MENU_PREV
Appears as the name of the button that leads the player to the previous page of aPaginatedMenu
. -
PAGINATED_MENU_PAGE
Appears as the name of the item that indicates the current page in aPaginatedMenu
.
-