Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ElgarL committed Aug 15, 2020
1 parent 57279f2 commit 8d8fbb6
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,63 @@
# PermTrigger [Bukkit/Spigot](https://www.spigotmc.org/resources/PermTrigger.82779/).
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

```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](https://github.com/ElgarL/PermTrigger/issues)

Expand Down

0 comments on commit 8d8fbb6

Please sign in to comment.