Class ContextKeys

java.lang.Object
com.griefdefender.api.permission.ContextKeys

public class ContextKeys extends Object
  • Field Details

    • CLAIM

      public static final String CLAIM
      Represents a Claim context key. Note: This context links a permission to a claim. Only accepts a UUID as a value.
      See Also:
    • CLAIM_DEFAULT

      public static final String CLAIM_DEFAULT
      Represents a Claim or ClaimType default context key. Note: This context is only applied as a default to a claim. Accepts the following values :
      • global
      • admin
      • basic
      • subdivision
      • town
      • wilderness
      See Also:
    • CLAIM_OVERRIDE

      public static final String CLAIM_OVERRIDE
      Represents a Claim or ClaimType override context key. Note: This context forces a permission to all users of a claim including owners. Accepts the following values :
      • global
      • admin
      • basic
      • subdivision
      • town
      • wilderness
      • claim uuid
      See Also:
    • CLAIMGROUP

      public static final String CLAIMGROUP
      Represents a ClaimGroup context key. Note: This context links a permission to a claim group.
      See Also:
    • CLAIMGROUP_OVERRIDE

      public static final String CLAIMGROUP_OVERRIDE
      Represents a ClaimGroup override context key.

      Note: Use the uuid for its value.
      Note: If you want to affect claim types then use CLAIM_OVERRIDE context instead.
      See Also:
    • CLAN

      public static final String CLAN
      Represents a clan context key. Note: This context is designed to be paired with one of the following contexts :
      • gd_claim
      • gd_claim_default
      • gd_claim_override
      See Also:
    • CUSTOM_TYPE

      public static final String CUSTOM_TYPE
      Represents a custom type context key. Note: This context is designed to be paired with one of the following contexts :
      • gd_claim
      • gd_claim_default
      • gd_claim_override
      See Also:
    • FLAG

      public static final String FLAG
      Represents a flag context key. Note: This is only used for Option's to pair it with a Flag.
      See Also:
    • RENT

      public static final String RENT
      Represents a rent context key. Note: This should always be applied to claims that are rented.
      See Also:
    • RUN_AS

      public static final String RUN_AS
      Represents a command Option context key. Used by options Options.PLAYER_COMMAND_ENTER and Options.PLAYER_COMMAND_EXIT.
      See Also:
    • RUN_FOR

      public static final String RUN_FOR
      Represents a command Option context key. Used by options Options.PLAYER_COMMAND_ENTER and Options.PLAYER_COMMAND_EXIT.
      See Also:
    • SOURCE

      public static final String SOURCE
      Represents a Flag source context key.
      See Also:
    • STATE

      public static final String STATE
      Represents one or more block state context key.
      See Also:
    • TARGET

      public static final String TARGET
      Represents a Flag target.
      See Also:
    • USED_ITEM

      public static final String USED_ITEM
      Represents the used player item.
      See Also:
  • Constructor Details

    • ContextKeys

      public ContextKeys()