Git Product home page Git Product logo

extracontexts's Introduction

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. You have to enable each placeholder in config.yml
How do I check if it's working?

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

Contexts


worldguard:region

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

e.g.

worldguard:region=spawn


worldguard:in-region

Returns true or false if the player is in a WorldGuard region

e.g.

worldguard:in-region=true


worldguard:flag-xxx

Returns the value of each flag set by WorldGuard in the region the player is currently in

e.g.

worldguard:flag-build=allow


whitelisted

Returns if the player is whitelisted on the server or not

e.g.

whitelisted=true


team

Returns the name of the team the players is in

e.g.

team=pvp-blue


has-played-before

Returns if the player has connected to the server before, or if this is their first time

e.g.

has-played-before=false


PlaceholderAPI

Returns the result for a defined set of placeholders.

e.g.

config:

placeholderapi-placeholders:
  allowflight: "%player_allow_flight%"

allowflight=true


extracontexts's People

Contributors

lucko avatar akiranya avatar sxtanna avatar drpanic avatar phoenix616 avatar maximmaxims avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.