Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Bypass permission nodes for vanilla features.

Open Mickey42302 opened this issue 7 months ago • 3 comments

Is your feature request related to a problem?

There are a number of vanilla features which do not have a bypass permission node. This includes, but is not limited to: spawn protection, the "force-gamemode" setting, and the "allow-flight" setting.

The lack of permission nodes for these features makes it more difficult to control who is and isn't affected by them. This can be especially problematic for certain configurations. For example, if a server uses "force-gamemode", there is no way to prevent certain users from being affected by it.

Describe the solution you'd like.

Adding permission nodes for these features would be very helpful.

A permission node for bypassing spawn protection would allow server owners to give staff members the ability to be exempt from it. The lack of a permission node for spawn protection has been an issue since Bukkit; I even found a forum post about it from back in 2014: https://bukkit.org/threads/permission-to-ignore-spawn-protection.312432/

A permission node for bypassing "force-gamemode" would allow for more control when running a server with the "force-gamemode" setting. Sponge already has this feature, as well as bypass permission nodes for the player limit and whitelist: https://docs.spongepowered.org/stable/en/server/spongineer/commands.html

A permission node for bypassing the "allow-flight" setting would be nice too. This way, servers can control who is exempt from this anti-cheating measure. Paper already has a permission node for bypassing its anti-xray functionality, which is an anti-cheating measure as well: https://docs.papermc.io/paper/reference/permissions/

Describe alternatives you've considered.

I have asked forks of Paper about this issue, but never received a response.

Other

No response

Mickey42302 avatar Jun 11 '25 17:06 Mickey42302

Adding permissions for these sorts of thing creates major issues around exposability to plugins and their own ability to interact with and against these operations, many of which already offer more flexible options of control here.

allow-flight is generally just best disabled and replaced with a competent anti-cheat plugin as mojangs solution typically sucks.

electronicboy avatar Jun 11 '25 18:06 electronicboy

I suppose you have a point about the "allow-flight" setting.

As for the spawn protection and "force-gamemode" setting, could you please elaborate upon how a permission node would affect exposability to plugins? I've yet to see any plugins that interact with the vanilla spawn protection/"force-gamemode" setting directly.

Mickey42302 avatar Jun 11 '25 18:06 Mickey42302

I generally thought that you more intended this as a wider discussion rather than a "here's three things I want perms for";

I'd guess there is no real harm in perms for these, assuming no plugins are expecting to get events for stuff like the gamemode change in order to override it; The reality is that those three things are generally much better handled by fairly common plugins that there is just little desire/care into putting the effort into such requests

electronicboy avatar Jun 11 '25 19:06 electronicboy