Enum Class Visibility

java.lang.Object
java.lang.Enum<Visibility>
com.kamikazejam.kamicommon.command.Visibility
All Implemented Interfaces:
Serializable, Comparable<Visibility>, Constable

public enum Visibility extends Enum<Visibility>
  • Enum Constant Details

    • VISIBLE

      public static final Visibility VISIBLE
      Visible commands are visible to anyone. Even those who don't have permission to use it or is of invalid sender type.
    • SECRET

      public static final Visibility SECRET
      Secret commands are visible only to those who can use the command. These commands are usually some kind of admin commands.
    • INVISIBLE

      public static final Visibility INVISIBLE
      Invisible commands are invisible to everyone, even those who can use the command.
  • Method Details

    • values

      public static Visibility[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Visibility valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null