Enum UsableBy

java.lang.Object
java.lang.Enum<UsableBy>
wbs.utils.util.commands.UsableBy
All Implemented Interfaces:
Serializable, Comparable<UsableBy>, java.lang.constant.Constable

public enum UsableBy extends Enum<UsableBy>
Who can use a given command
  • Enum Constant Details

    • ANY

      public static final UsableBy ANY
      Any CommandSender.
    • PLAYER

      public static final UsableBy PLAYER
      A Player.
    • CONSOLE

      public static final UsableBy CONSOLE
      A ConsoleCommandSender.
    • BLOCK

      public static final UsableBy BLOCK
      A BlockCommandSender.
  • Method Details

    • values

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

      public static UsableBy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null