Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for gecko10000

A plugin to facilitate stacking permissions

Report PermissionSums?

PermissionSums

This plugin allows for permissions to stack, a much sought-after feature. This is done by setting specific permissions in place of the normal ones, which are then summed up by the plugin. These permissions are added as PermissionAttachments, so they will be easily accessible to other plugins. This plugin requires LuckPerms as a base, so it can listen to the UserDataRecalculateEvent.

Usage

To get started with the plugin, just take a look at the config.yml. You will need to add the permissions which you want to stack to the config as templates, but this won't do anything on its own. After this, you must set the relevant permissions as shown in the config's comments.

To check if the summation is being done correctly, use the /permsums check <template> [player] command to debug a player's sum.

To easily add a node to a player, use /permsums add <permission> <player> and the permission will automatically be converted into the sum.<permission>.<id> format, where the ID will be a randomly generated UUID.

PAPI Integration

This plugin also provides an optional integration with PlaceholderAPI. The placeholders available are based on the templates in the config, but can be listed by viewing the tab-completion of /papi parse me %permsums_. This will return just the sum and can be used in other plugins when needed.

Information

CategoryAdmin Tools
Published onJanuary 19, 2025
LicenseUnspecified
Downloads13
Stars2
Watchers1

Pinned Versions

Members