Enum Class ClaimPermission

java.lang.Object
java.lang.Enum<ClaimPermission>
me.EtienneDx.RealEstate.ClaimAPI.ClaimPermission
All Implemented Interfaces:
Serializable, Comparable<ClaimPermission>, Constable

public enum ClaimPermission extends Enum<ClaimPermission>
An enumeration of the various permission types that can be applied to a claim.

These permissions define what actions a player is allowed to perform on a claim, such as building, accessing containers, managing, or editing the claim.

  • Enum Constant Details

    • BUILD

      public static final ClaimPermission BUILD
      Allows a player to build on the claim.
    • CONTAINER

      public static final ClaimPermission CONTAINER
      Allows a player to access containers (e.g., chests) within the claim.
    • MANAGE

      public static final ClaimPermission MANAGE
      Allows a player to manage the claim.
    • EDIT

      public static final ClaimPermission EDIT
      Allows a player to edit the claim.
    • ACCESS

      public static final ClaimPermission ACCESS
      Allows a player to access the claim.
  • Method Details

    • values

      public static ClaimPermission[] 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 ClaimPermission 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