How do I run commands when users rank up, to give them access to new permissions?
finnan04 opened this issue ยท 15 comments
How do I run commands when users rank up, to give them access to new permissions?
Hi finnan04, thanks for using Prison! You can get a detailed tutorial on Ranks in our Ranks Guidebook! https://github.com/MC-Prison/Prison/wiki/Ranks-Guidebook In that guidebook, there is information on how to execute commands (i.e. a permission change command) when a user ranks up.
This still hasn't fixed my original problem. What should my permissions.yml look like?
I can still do '/warp b' even though I'm only 'a' rank.
By the way, I am using PEX for my staff / donator ranks.
I can still do '/warp b' when I'm rank 'a' because I am adding the permission * to myself. But when I give myself no permissions I can do none of the commands.
Not sure if this video will explain my problem very well but I tried my best:
https://youtu.be/FHv4ZGN7vC0
Yeah me neither. Check your PEX config over. I can't really suggest anything else, Prison only adds the permissions you tell it to.
I think the problem is you cant do the command because you hadnt ranked up, make groups A-Z and add pex user group add A instead of adding them to the player and rankup
This is my PEX config:
https://pastebin.com/hVZYjqcP
As a server owner, it's your responsibility to make sure your config is correct. I don't mind helping you with the Prison config, as that's what I'm here for :)
Before you replied, I didn't know that the '/ranks command' command existed, so that was helpful but I am still having troubles.
When I use the commands:
/ranks command add a essentials.warp
/ranks command add a essentials.warp.a
/ranks command add b essentials.warp
/ranks command add b essentials.warp.a
/ranks command add b essentials.warp.b
Rank 'a' still has permission to '/warp b'.
This is what my permissions.yml in PermissionsEx looks like:
https://pastebin.com/QsxunGdu
If I give the 'default' rank no permissions, I am not allowed to use the commands.
You're using the command incorrectly. It should look something like this:
/ranks command add a pex user <user> add essentials.warp
/ranks command add a pex user <user> add essentials.warp.a