iSach / UltraCosmetics

Lightweight, Fun and Easy-to-Use Spigot Cosmetics plugin. (Gadgets, etc)
https://www.spigotmc.org/resources/ultra-cosmetics-halloween-update.10905/
GNU Affero General Public License v3.0
165 stars 155 forks source link

Use LuckPerms API by default rather than commands #598

Closed datatags closed 2 years ago

datatags commented 2 years ago

Describe the feature and how it would be used

It'd be cool if UC defaulted to doing permission assignments by using the LuckPerms API, since it seems like basically everyone uses LuckPerms these days. This wouldn't replace the command option, you'd just put a special value in the command box such as !lp-api with optional arguments for contexts.

Are there alternatives?

Currently, UC uses say with a message as the default permission command to let server owners know they need to set it. That works fine, but some server owners have more trouble with that than others.

Another option would be to use the LuckPerms permission add command by default, but then we could wind up in weird situations where the server owner didn't realize UC was assigning global permissions, or just with confused server owners that don't use LuckPerms.

Additional information

LP seems to have a pretty good API (and I should hope so): https://luckperms.net/wiki/Developer-API-Usage