/ExtraContexts

Extra contexts for LuckPerms running on Bukkit

Primary LanguageJavaMIT LicenseMIT

ExtraContexts

Provides a number of extra "contexts" for LuckPerms.

About

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.

Downloads and Usage

  • 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.
How do I check if it's working?

A player's "current contexts" are listed when you run /lp user <user> info.

Contexts


wg-region

Returns the name of each WorldGuard region the player is currently in

e.g.

wg-region=spawn


gamemode

Returns the players current gamemode

e.g.

gamemode=creative


dimension

Returns the type of the players current world

e.g.

dimension=nether


PlaceholderAPI

Returns the result for a defined set of placeholders.

e.g.

config:

placeholderapi-placeholders:
  allowflight: "%player_allow_flight%"

allowflight=true