Package net.okocraft.box.api.message
Class ErrorMessages
java.lang.Object
net.okocraft.box.api.message.ErrorMessages
A class that holds common error messages.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.github.siroshun09.messages.minimessage.base.MiniMessageBase
A message sent when the player cannot use Box.static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase
A message sent when the command executed by the non-player.static final com.github.siroshun09.messages.minimessage.arg.Arg1
<String> A message sent when the specified argument is not number.static final com.github.siroshun09.messages.minimessage.arg.Arg1
<String> A message sent when the specified item is not found.static final com.github.siroshun09.messages.minimessage.arg.Arg1
<String> A message sent when the player does not have the permission.static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase
A message sent when arguments are not enough.static final com.github.siroshun09.messages.minimessage.arg.Arg1
<String> A message sent when the specified player is not found.static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase
A message sent when the specified subcommand is not found. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase
playerDataIsLoading
(@Nullable String playerName) Creates a message sent when the player data is currently loading.static @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase
playerDataIsNotLoaded
(@Nullable String playerName) Creates a message sent when the player data is not loaded.
-
Field Details
-
NO_PERMISSION
A message sent when the player does not have the permission. -
CANNOT_USE_BOX
public static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase CANNOT_USE_BOXA message sent when the player cannot use Box. -
COMMAND_ONLY_PLAYER
public static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase COMMAND_ONLY_PLAYERA message sent when the command executed by the non-player. -
INVALID_NUMBER
A message sent when the specified argument is not number. -
ITEM_NOT_FOUND
A message sent when the specified item is not found. -
PLAYER_NOT_FOUND
A message sent when the specified player is not found. -
SUB_COMMAND_NOT_FOUND
public static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase SUB_COMMAND_NOT_FOUNDA message sent when the specified subcommand is not found. -
NOT_ENOUGH_ARGUMENT
public static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase NOT_ENOUGH_ARGUMENTA message sent when arguments are not enough.
-
-
Method Details
-
playerDataIsNotLoaded
@NotNull public static @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase playerDataIsNotLoaded(@Nullable @Nullable String playerName) Creates a message sent when the player data is not loaded.- Parameters:
playerName
- a player name ornull
if self- Returns:
- a message sent when the player data is not loaded
-
playerDataIsLoading
@NotNull public static @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase playerDataIsLoading(@Nullable @Nullable String playerName) Creates a message sent when the player data is currently loading.- Parameters:
playerName
- a player name ornull
if self- Returns:
- a message sent when the player data is currently loading
-