Prison 3

Prison 3

191k Downloads

How do I run commands when users rank up, to give them access to new permissions?

finnan04 opened this issue ยท 15 comments

commented

How do I run commands when users rank up, to give them access to new permissions?

commented

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.

commented

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.

commented

Not sure if this video will explain my problem very well but I tried my best:
https://youtu.be/FHv4ZGN7vC0

commented

I don't think this is a problem with Prison at all

commented

Yeah me neither. Check your PEX config over. I can't really suggest anything else, Prison only adds the permissions you tell it to.

commented

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

commented

This is my PEX config:
https://pastebin.com/hVZYjqcP

commented

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 :)

commented

By the looks of things, this is completely unrelated to Prison.

commented

Once you rankup to the rank you added the permissions to send the permissions.yml

commented

The ticket is closed, please stop replying.

commented

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.

commented

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

commented

That command isn't working it just tells me all the subcommands when I do it.

commented

Apologies, I mistyped.
/ranks command add a pex user <user> add essentials.warp
/ranks command add a pex user <user> add essentials.warp.a