Closed LewBr closed 6 years ago
@Falkirks after testing I can confirm this issue still exists.
The permission doesn't get added?
From what I can tell the way Group in rankupdoesgroups handles permission attachments is entirely wrong.
@Falkirks yes it doesn't. I used this.
---
groups:
A:
entrance:
- say {name} ranked up to A
exit: []
perms:
- pocketmine.command.say
- -pocketmine.command.me
members: []
B:
entrance:
- say {name} ranked up to B
exit: []
perms:
- pocketmine.command.say
members:
- JackMPlayz
C:
entrance:
- say {name} ranked up to C
exit: []
perms: []
members: []
D:
entrance:
- say {name} ranked up to D
exit: []
perms: []
members: []
...
And when i ranked up to A=>B i was unable to use the /say command.
I have an idea how to fix it, but I can't test it right now, hopefully I have a chance later today.
Maybe add a commit I can test it for you.
It is probably going to be a bit tricky, I will see
Okay
Yeah, something weird is going on that I can't quickly see. I will look again later.
Okay take your time.
open this issue, sometimes the permission doesn't work @Falkirks can you confirm this?
I thought that Falkirks fixed this. What permissions doesn't work? Maybe you set the config a bit wrong?
Nope, I didn't set anything wrong, it only work when I reload my server When ranking up, sometimes Member can't use command like /warp (which I have setting up)
If its not working do it this way. This is how I do used to do and it worked.
---
groups:
A:
entrance:
- say {name} ranked up to A
- setuperm {name} essentials.warps.A
exit: []
perms: []
members: []
B:
entrance:
- say {name} ranked up to B
- setuperm {name} essentials.warps.B
- unsetuperm {name} essentials.warps.A
exit: []
perms: []
members: []
...
This is an alternative way but you need to have PurePerms for perms and etc.
that's a good idea, somehow XD one :+1:
Ikr. Thats what I had been doing and it sort of did the trick
I think I found the problem @JackMD @Falkirks The number of people will show up like members: 0: asdasdas (for example) the permission will work But some how the more you rank up, the numbers will change to "-", which is the problem that members can't execute command even if the permission is on
That's just YAML guessing the data is not associative, it shouldn't change anything that comes to the program. Do permissions also perhaps break when the server restarts?
I don't know, I am not even reload or something
Permissions does't work
i will add
1: entrance: [] exit: [] perms:
-
pocketmine.command.say members: []but doesnt works! fix this pls