PermTrigger v1.0.1

Trigger commands based upon permssion assignments.

  1. ElgarL
    Native Minecraft Version:
    1.14
    Tested Minecraft Versions:
    • 1.16
    Source Code:
    https://github.com/ElgarL/PermTrigger
    Contributors:
    ElgarL
    Sponsor: Sponsor on Github
    Donate: Donate via Paypal

    This plug-in defines commands to be executed at the console when a specific permission is added or removed from a player.
    demo.jpg
    It will work without a permission plugin but performs best 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.
    The only command you will need when making changes to the triggers is '/ptreload', or wait for it to refresh (default 60 minutes).

    Code (Text):
    # 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
    I have setup a Discord for support, but I also
    hang out on the Towny Discord if anyone needs help
    https://discord.gg/BdGxVmu

    Ratings
    Please leave a ✮✮✮✮✮ rating if you enjoy the plug-in! For issues use the Discord link or create a ticket on Github.
    LlmDl likes this.

Recent Updates

  1. v1.0.1 for 1.14+