| Package | Description |
|---|---|
| me.lucko.luckperms.api | |
| me.lucko.luckperms.api.context |
| Modifier and Type | Method and Description |
|---|---|
default ContextSet |
LuckPermsApi.getContextForPlayer(Object player)
Gets set of contexts applicable to a player using the platforms
ContextCalculators. |
ContextSet |
Node.getContexts()
Gets the extra contexts required for this node to apply.
|
ContextSet |
HeldPermission.getContexts()
Gets the extra context for the permission.
|
ContextSet |
Contexts.getContexts()
Gets the
ContextSet which represent these Contexts. |
ContextSet |
Node.getFullContexts()
The same as
Node.getContexts(), but also includes context pairs for
"server" and "world" keys if present. |
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionHolder.clearMeta(ContextSet contextSet)
Clears all meta held by the object in a specific context
|
void |
PermissionHolder.clearNodes(ContextSet contextSet)
Clears all nodes held by the object in a specific context
|
void |
PermissionHolder.clearParents(ContextSet contextSet)
Clears all parent groups in a specific context
|
DemotionResult |
Track.demote(User user,
ContextSet contextSet)
Demotes the given user along this track.
|
boolean |
PermissionHolder.inheritsGroup(Group group,
ContextSet contextSet)
Check to see if this holder inherits another group directly
|
static Contexts |
Contexts.of(ContextSet contextSet,
boolean includeNodesSetWithoutServer,
boolean includeNodesSetWithoutWorld,
boolean resolveInheritance,
boolean applyParentsWithoutServer,
boolean applyParentsWithoutWorld,
boolean isOp)
Creates a new
Contexts instance. |
static Contexts |
Contexts.of(ContextSet contextSet,
Set<LookupSetting> settings)
Creates a new
Contexts instance. |
PromotionResult |
Track.promote(User user,
ContextSet contextSet)
Promotes the given user along this track.
|
Node.Builder |
Node.Builder.setExtraContext(ContextSet contextSet)
Sets the extra contexts for the node.
|
boolean |
Node.shouldApplyWithContext(ContextSet contextSet)
Gets if this node should apply in the given context
|
Node.Builder |
Node.Builder.withExtraContext(ContextSet contextSet)
Appends extra contexts onto the node.
|
| Constructor and Description |
|---|
Contexts(ContextSet contextSet,
boolean includeNodesSetWithoutServer,
boolean includeNodesSetWithoutWorld,
boolean resolveInheritance,
boolean applyParentsWithoutServer,
boolean applyParentsWithoutWorld,
boolean isOp)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableContextSet
An immutable implementation of
ContextSet. |
class |
MutableContextSet
A mutable implementation of
ContextSet. |
| Modifier and Type | Method and Description |
|---|---|
void |
MutableContextSet.addAll(ContextSet contextSet)
Adds of of the contexts in another
ContextSet to this set. |
ImmutableContextSet.Builder |
ImmutableContextSet.Builder.addAll(ContextSet contextSet)
Adds of of the contexts in another
ContextSet to the set. |
static MutableContextSet |
MutableContextSet.fromSet(ContextSet contextSet)
Creates a new
MutableContextSet from an existing Set. |
static ImmutableContextSet |
ImmutableContextSet.fromSet(ContextSet contextSet)
Creates an new
ImmutableContextSet from an existing Set. |
static ImmutableContextSet |
ContextSet.fromSet(ContextSet contextSet)
Creates an new
ImmutableContextSet from an existing Set. |
default boolean |
ContextSet.isSatisfiedBy(ContextSet other)
Returns if this
ContextSet is fully "satisfied" by another set. |
Copyright © 2018. All rights reserved.