How to prevent from modifying players with certain group.
soswi opened this issue ยท 18 comments
I'm trying to set Moderator group, so it can't change group of player with Admin group, but it's not working.
To do that I'm using Argument based command permissions and Moderator permission looks like that.
luckperms.user.parent.set
luckperms.user.parent.set.modify.others
luckperms.user.parent.set.builder
And now - What should I add to make it work as I want it to ?
https://github.com/lucko/LuckPerms/wiki/Argument-based-command-permissions
- did you enabled arguement-based in luckperms config.yml
- use verbose to see the perms https://github.com/lucko/LuckPerms/wiki/Verbose
Pay particularly close attention to this part here: https://github.com/lucko/LuckPerms/wiki/Argument-based-command-permissions#checks-when-a-player-makes-changes-in-a-specific-context
and all permission from verbose are there exept for
luckperms.user.parent.set.usecontext.global
and that's all
I dont see any issue, if you don't want to be able to add someone to admin, then set luckperms.user.parent.set.admin
to false.
I mean that's literally the purpose of this feature. Your verbose logs show that everything is true
so maybe you've set a wildcard permission somewhere or maybe you're even opped (always deop yourself when doing any permission debugging).
@Turbotailz I think what he wants like if i am a mod, I caant touch the permissions for users in admin group. For me id suggest using tracks instead of parent set command.
Okey so I'll use trakcs then
@benwoo1110 and that's exactly what I meant..
Thanks guys for help