Provides a number of extra "contexts" for LuckPerms.
Contexts are a concept in LuckPerms that allows permissions to be set to apply only in certain circumstances. See here for more info.
This plugin (ExtraContexts) provides a number of contexts for Bukkit servers. The supported contexts are listed below.
- The plugin can be downloaded from Jenkins. [direct link]
- To use it, just add it to your plugins folder and enable the contexts you want to use. You have to enable each placeholder in
config.yml
A player's "current contexts" are listed when you run /lp user <user> info
.
Returns the name of each WorldGuard region the player is currently in
e.g.
worldguard:region=spawn
Returns true or false if the player is in a WorldGuard region
e.g.
worldguard:in-region=true
Returns the value of each flag set by WorldGuard in the region the player is currently in
e.g.
worldguard:flag-build=allow
Returns if the player is whitelisted on the server or not
e.g.
whitelisted=true
Returns the name of the team the players is in
e.g.
team=pvp-blue
Returns if the player has connected to the server before, or if this is their first time
e.g.
has-played-before=false
Returns the result for a defined set of placeholders.
e.g.
config:
placeholderapi-placeholders:
allowflight: "%player_allow_flight%"
allowflight=true