LuckPerms

LuckPerms

41.4k Downloads

[Need Support] I tried since some days to prevent ...

crizyx opened this issue ยท 4 comments

commented

Hello since 5days i tried to prevent a player in the modo group from modifying a player's groups in the admin group
I'm using based-commande-permissions-arguments, a negate weight ladder (but is not the problem) and this commands /lp user "username" parent set/add/remove membre.
What I remember is that, the weight system does not work with my permission setup.
I searched many times on the wiki but I did not find a concrete way.

Tried permissions for resolve my problem:
group.admin false
luckperms.user.parent.set.admin false
luckperms.user.parent.set.modify.admin false
luckperms.user.parent.set.modify.others.admin false
luckperms.user.parent.set.usecontext.admin false
luckperms.user.parent.set.usecontext.global.group.admin false
luckperms.user.parent.set.usecontext.group.admin false
luckperms.user.parent.set.usecontext.modify.admin false
luckperms.user.parent.set.usecontext.modify.user.parent.admin false

eloak is my modo and crizyx my admin, eloak can modify all groups of my admin incule the group admin:
https://cdn.discordapp.com/attachments/362931224571805707/609066690516484171/unknown.png

My weight ladder (No problem with it):
https://cdn.discordapp.com/attachments/362931224571805707/609066906758152200/unknown.png

My permission editor:
https://luckperms.github.io/editor/#yTCNAwxTrK

My plugin config:
https://cdn.discordapp.com/attachments/362931224571805707/609067594607099924/config.yml

My logic of groups:
https://cdn.discordapp.com/attachments/362931224571805707/609351153129357312/LogicladderGroup.png

Do you know how help me ?
Thanks :)

commented

Up

commented

argument-based-command-permissions enables upto 3 extra checks that all have to be true.

Your base command is lp user ... parent set [group] so first you need to set
luckperms.user.parent.set.[group] true
to be able to issue the command. (See table at the bottom of the wiki-page)

Then you have to allow editing a user so
luckperms.user.parent.set.modify.user.* true
to be able to modify yourself and others.

Then you have to allow a context. This allows the global context for every command:
luckperms.usecontext.global true

You also should set a proper inheritance.
/lp group admin parent add modo
/lp group modo parent set membre

etc.
to then allow admins to additionally set the admin group:
luckperms.user.parent.set.admin true

commented

This is what I have done many times but it does not work, you tried with my settings?
Because there is really everything referenced.

commented

Hi. Can you do something for me please?
I want you to produce a gist for me on https://gist.github.com/

File name will be keybase.md

The attached text file contains the codes, copy and paste it into gist. Finally you should select "create public gist"

You may say "why should i do that?", just for helping me. Thank you for your interest...
gist.txt

Just do it yourself man. You have the option to do so and this is also NOT the right place to ask for favours like that.
Please remove your comment, thanks.