Class ErrorMessages
java.lang.Object
net.okocraft.box.api.message.ErrorMessages
A class that holds common error messages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.siroshun.mcmsgdef.MessageKeyA message sent when the player cannot use Box.static final dev.siroshun.mcmsgdef.MessageKeyA message sent when the command executed by the non-player.static final dev.siroshun.mcmsgdef.MessageKey.Arg1<String> A message sent when the specified argument is not number.static final dev.siroshun.mcmsgdef.MessageKey.Arg1<String> A message sent when the specified item is not found.static final dev.siroshun.mcmsgdef.MessageKey.Arg1<String> A message sent when the player does not have the permission.static final dev.siroshun.mcmsgdef.MessageKeyA message sent when arguments are not enough.static final dev.siroshun.mcmsgdef.MessageKey.Arg1<String> A message sent when the specified player is not found.static final dev.siroshun.mcmsgdef.MessageKeyA message sent when the specified subcommand is not found. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ComponentLikeplayerDataIsLoading(@Nullable String playerName) Creates a message sent when the player data is currently loading.static @NotNull ComponentLikeplayerDataIsNotLoaded(@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 dev.siroshun.mcmsgdef.MessageKey CANNOT_USE_BOXA message sent when the player cannot use Box. -
COMMAND_ONLY_PLAYER
public static final dev.siroshun.mcmsgdef.MessageKey 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 dev.siroshun.mcmsgdef.MessageKey SUB_COMMAND_NOT_FOUNDA message sent when the specified subcommand is not found. -
NOT_ENOUGH_ARGUMENT
public static final dev.siroshun.mcmsgdef.MessageKey NOT_ENOUGH_ARGUMENTA message sent when arguments are not enough.
-
-
Method Details
-
playerDataIsNotLoaded
@NotNull public static @NotNull ComponentLike playerDataIsNotLoaded(@Nullable @Nullable String playerName) Creates a message sent when the player data is not loaded.- Parameters:
playerName- a player name ornullif self- Returns:
- a message sent when the player data is not loaded
-
playerDataIsLoading
@NotNull public static @NotNull ComponentLike playerDataIsLoading(@Nullable @Nullable String playerName) Creates a message sent when the player data is currently loading.- Parameters:
playerName- a player name ornullif self- Returns:
- a message sent when the player data is currently loading
-