Git Product home page Git Product logo

permtrigger's Introduction

PermTrigger Bukkit/Spigot.

A plug-in for Spigot that triggers commands based upon permssion assignments.


This plug-in allows you to define commands to be executed at the console when a specific permission is added or removed from a player.

It will work without a permission plugin but performs better with Groupmanager 2.6+ or LuckPerms 5.1+.

After first run it will create a demo perm_triggers.json in the plugin/PermTriggers/ folder.

You can set to load (and refresh) from a json file or to pull the file from a webserver.


Example perm_triggers.json

# This file contains permission triggers.
# 
# Triggers are sets of commands to be issue at the console
# when a permission is added to, or removed from a player.
# 
# Commands can have prefixes to perform specific tasks.
# '#broadcast' '#tell'
{
  "player.creative": {
    "forced": true,
    "added": [
      "gamemode creative {player}",
      "#broadcast {player} has become enlightened!"
    ],
    "removed": [
      "gamemode survival {player}",
      "#broadcast {player} has equipped leaded boots."
    ]
  },
  "player.speed": {
    "added": [
      "effect give {player} speed 1700 5 true",
	  "effect give {player} haste 1700 3 true",
      "#tell You have become fast!"
    ],
    "removed": [
      "effect clear {player} speed",
	  "effect clear {player} haste",
      "#tell Slow down speedy!"
    ]
  },
  "player.op": {
    "added": [
      "op {player}"
    ],
    "removed": [
      "deop {player}"
    ]
  }
}

Bug reports
https://github.com/ElgarL/PermTrigger/issues

Support
Support my Dev work via PayPal - Donate.
I hang out on the Towny Discord if anyone needs help https://discord.gg/gnpVs5m

permtrigger's People

Contributors

elgarl 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.