Class ContextKeys

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

public class ContextKeys extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Represents a
    invalid reference
    Claim
    context key.
    static final String
    Represents a
    invalid reference
    Claim
    or
    invalid reference
    ClaimType
    default context key.
    static final String
    Represents a
    invalid reference
    Claim
    or
    invalid reference
    ClaimType
    override context key.
    static final String
    Represents a
    invalid reference
    ClaimGroup
    context key.
    static final String
    Represents a
    invalid reference
    ClaimGroup
    override context key.
    static final String
    Represents a clan context key.
    static final String
    Represents a custom type context key.
    static final String
    Represents a flag context key.
    static final String
    Represents a rent context key.
    static final String
    Represents a command
    invalid reference
    Option
    context key.
    static final String
    Represents a command
    invalid reference
    Option
    context key.
    static final String
    Represents a
    invalid reference
    Flag
    source context key.
    static final String
    Represents one or more block state context key.
    static final String
    Represents a
    invalid reference
    Flag
    target.
    static final String
    Represents the used player item.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CLAIM

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

      public static final String CLAIM_DEFAULT
      Represents a
      invalid reference
      Claim
      or
      invalid reference
      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
      invalid reference
      Claim
      or
      invalid reference
      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
      invalid reference
      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
      invalid reference
      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
      invalid reference
      Option
      's to pair it with a
      invalid reference
      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
      invalid reference
      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
      invalid reference
      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
      invalid reference
      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
      invalid reference
      Flag
      target.
      See Also:
    • USED_ITEM

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

    • ContextKeys

      public ContextKeys()