Package com.griefdefender.api.permission
Class ContextKeys
java.lang.Object
com.griefdefender.api.permission.ContextKeys
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRepresents aClaimcontext key.static final StringRepresents aClaimorClaimTypedefault context key.static final StringRepresents aClaimorClaimTypeoverride context key.static final StringRepresents aClaimGroupcontext key.static final StringRepresents aClaimGroupoverride context key.static final StringRepresents a clan context key.static final StringRepresents a custom type context key.static final StringRepresents a flag context key.static final StringRepresents a rent context key.static final StringRepresents a commandOptioncontext key.static final StringRepresents a commandOptioncontext key.static final StringRepresents aFlagsource context key.static final StringRepresents one or more block state context key.static final StringRepresents aFlagtarget.static final StringRepresents the used player item. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLAIM
Represents aClaimcontext key. Note: This context links a permission to a claim. Only accepts aUUIDas a value.- See Also:
-
CLAIM_DEFAULT
Represents aClaimorClaimTypedefault 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
Represents aClaimorClaimTypeoverride 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
Represents aClaimGroupcontext key. Note: This context links a permission to a claim group.- See Also:
-
CLAIMGROUP_OVERRIDE
Represents aClaimGroupoverride context key.
Note: Use the uuid for its value.
Note: If you want to affect claim types then useCLAIM_OVERRIDEcontext instead.- See Also:
-
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
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
Represents a flag context key. Note: This is only used forOption's to pair it with aFlag.- See Also:
-
RENT
Represents a rent context key. Note: This should always be applied to claims that are rented.- See Also:
-
RUN_AS
Represents a commandOptioncontext key. Used by optionsOptions.PLAYER_COMMAND_ENTERandOptions.PLAYER_COMMAND_EXIT.- See Also:
-
RUN_FOR
Represents a commandOptioncontext key. Used by optionsOptions.PLAYER_COMMAND_ENTERandOptions.PLAYER_COMMAND_EXIT.- See Also:
-
SOURCE
Represents aFlagsource context key.- See Also:
-
STATE
Represents one or more block state context key.- See Also:
-
TARGET
Represents aFlagtarget.- See Also:
-
USED_ITEM
Represents the used player item.- See Also:
-
-
Constructor Details
-
ContextKeys
public ContextKeys()
-