Enum Class PermissionLevel

java.lang.Object
java.lang.Enum<PermissionLevel>
net.darkhax.bookshelf.common.api.commands.PermissionLevel
All Implemented Interfaces:
Serializable, Comparable<PermissionLevel>, Constable, Predicate<net.minecraft.commands.CommandSourceStack>

public enum PermissionLevel extends Enum<PermissionLevel> implements Predicate<net.minecraft.commands.CommandSourceStack>
  • Enum Constant Details

    • PLAYER

      public static final PermissionLevel PLAYER
      All players will generally meet the requirements for this permission level.
    • MODERATOR

      public static final PermissionLevel MODERATOR
      These players have slightly elevated permission levels. In vanilla, they do not gain access to any additional commands, but they are able to bypass spawn chunk protection.
    • GAMEMASTER

      public static final PermissionLevel GAMEMASTER
      These players can execute commands that modify the world and player data. They are also allowed to use and modify command blocks.
    • ADMIN

      public static final PermissionLevel ADMIN
      These players can use commands related to player management. For example, they can ban, kick, op, and de-op.
    • OWNER

      public static final PermissionLevel OWNER
      This is the highest permission level available in vanilla Minecraft. Players with this permission level generally have no restrictions.
  • Method Details

    • values

      public static PermissionLevel[] 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 PermissionLevel 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
    • get

      public int get()
    • test

      public boolean test(net.minecraft.commands.CommandSourceStack source)
      Specified by:
      test in interface Predicate<net.minecraft.commands.CommandSourceStack>