I'm trying to setup permissions on a Bukkit server using PermissionsEx.
I've worked out how to add/remove permissions and basic group management, but I'd like to setup group inheritance.
The Groups I have are: default, member, moderator, admin and owner
I'd like it so that each group inherits from the one below.
What I've done so far is "pex group parent set "
using that command ive done the following:
default has a parent of member, member -> moderator, moderator -> admin, admin -> owner
I'm not sure thats right though :/ when i look at the permissions for default, it shows lots of permissions some saying "from member", "from moderator", "from admin" and so on.
Have I done it in the wrong direction?
I've looked at the documentation but it just shows the command and not a lot else.
Any help would be appreciated!
Best Answer
From your description it seems that you have done it in exactly the opposite order. (It would help if you also posted your script, though.)
When you 'inherit', it means the 'child' will inherit all of the parent's members and can also add its own. So basically what you did was, you let anybody (even
default
) use everything it inherited from every group all the way up toowner
.So basically what you need to do is:
default
groupmember
and set its parent (i.e. let it inherit from)default
moderator
inherit frommember
That should be it.
Edit: Yesterday at night I was pretty tired, about to go to sleep and a bit worried whether what I wrote would make any sense in the morning. Luckily it doesn't look that bad; so I'll even add an example now. :)
Make your yml file like this:
(I've named the default group
Guest
for clarity.)