LuckPerms

LuckPerms

41.4k Downloads

Autoop with op levels

SageSphinx63920 opened this issue ยท 4 comments

commented

Description

Luckperms does already offer the ability to set the users op status with autoop and permissions, so it would be very nice to add permission nodes for every 4 op permission level.

Proposed Behaviour

You could add the number of the permission level at the end of the autoop permission like:
Op Level 1 = "luckperms.autoop.1"
Op Level 2 = "luckperms.autoop.2"
...

"luckperms.auttop" without any number would gain level 4.

Extra Details

No response

commented

i dont get why you would want to use op levels when the entire point of a permissions plugin is to allow finer control over permissions than having 4 arbitrary levels.

commented

I suspect this is for platforms like fabric or forge where permissions are still a relatively new thing in the ecosystem, and most mods still rely on things like op level checks.

I hope at least anyways, since on platforms like Bukkit, op is basically a binary system as far as plugins are concerned, either a player is opped, or they aren't.

commented

As I tried to implement this myself, I found no way to add this with the spigot api. I think creating presets of permissions would be possible like lp.autoop.1 would add the permissions op level 1 normally has access to. This would help some new users or modded servers that worked with the levels to improve the setup process.

commented

Like I said, Bukkit is a binary system when it comes to OP. Either a player doesn't have OP, or they do.

Creating preset permissions would be a mess since there's no nice source of truth for what should be granted with what OP level, meaning error-prone manual maintenance. Additionally, that wouldn't take into account the many plugins that have permissions set to default to true for opped users.

Personally IMO this feature doesn't make sense for Bukkit. Every plugin under the sun supports permissions, there's no reason not to just set them manually. The only time this feature makes sense in my mind is platforms like Forge which haven't yet fully adopted permissions, and thus manual OPing might make sense as a stopgap bridge.