LuckPerms

LuckPerms

41.4k Downloads

Testing mode for testing groups-permissions

burdoto opened this issue ยท 7 comments

commented

Description

It would be very helpful to have a command that would temporarily put you into some kind of permission test mode; where LP pretends like you're not OP or in a whole different group.

Proposed Behaviour

For admins, its not always clear what permissions have which effect; so they always have to fire up a secondary instance with an alt account for testing.

A command such as for example /lp simulate <group> could work around this.
Verify for permissions is good, but it does not give much insight on the ACTUAL effect on command usage.

Extra Details

No response

commented

unless you need to test permissions for luckperms commands, you can simply give yourself the permission for /op (usually minecraft.command.op) and all luckperms permissions (luckperms.*), and that lets you de-op yourself, set whatever things you want to test, test them, iterate until it works how you want, then re-op yourself and set your group back to whatever you normally have. if you need to test permissions for luckperms commands, youd need to make the changes from console if you want to test with 1 account

commented

The proposed solution is only a workaround, as I would still have to change my groups back and forth every time. This could be simplified with a command to toggle such test mode on or off

commented

What about a counter-suggestion about this, similar to /lp group default permission check ... that can be used to check LPs result for a command; such as running /lp group default permission checkcmd gamemode creative to see if group default can run the command /gamemode creative?

commented

the existing /lp verbose command command works since it actually runs the commands as a player with everything that entails. there is no way to run the command as a group. also the permission check command returns the result of a single permission, not of a command

commented

the permission check command returns the result of a single permission, not of a command
yes thats why i was asking about this.

however, i did not know that the verbose command exists. thank you for pointing that out; that would obsolete this suggestion, at least from my side

commented

actually, there seems to be an issue with the verbose command

when running /lp verbose command SpaceTy say test, they got a "no perms" message, and no permission checks were caught.

however, when they were manually using the command afterwards, it worked just fine:
image

commented

it seems to me this belongs into a different issue, not only because it seems to be encountering more in-depth problems, since after using /lp verbose record, the server started stalling unpredictably. i will investigate further and open a bug report when i get the chance