Class ErrorMessages

java.lang.Object
net.okocraft.box.api.message.ErrorMessages

public final class ErrorMessages extends Object
A class that holds common error messages.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    static @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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NO_PERMISSION

      public static final com.github.siroshun09.messages.minimessage.arg.Arg1<String> 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_BOX
      A message sent when the player cannot use Box.
    • COMMAND_ONLY_PLAYER

      public static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase COMMAND_ONLY_PLAYER
      A message sent when the command executed by the non-player.
    • INVALID_NUMBER

      public static final com.github.siroshun09.messages.minimessage.arg.Arg1<String> INVALID_NUMBER
      A message sent when the specified argument is not number.
    • ITEM_NOT_FOUND

      public static final com.github.siroshun09.messages.minimessage.arg.Arg1<String> ITEM_NOT_FOUND
      A message sent when the specified item is not found.
    • PLAYER_NOT_FOUND

      public static final com.github.siroshun09.messages.minimessage.arg.Arg1<String> 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_FOUND
      A message sent when the specified subcommand is not found.
    • NOT_ENOUGH_ARGUMENT

      public static final com.github.siroshun09.messages.minimessage.base.MiniMessageBase NOT_ENOUGH_ARGUMENT
      A 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 or null 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 or null if self
      Returns:
      a message sent when the player data is currently loading