Vault

Vault

7M Downloads

Vault: Return Player List For a Group

cpybus opened this issue ยท 3 comments

commented

Is there any way to get a list of players in a certain group?

commented

Im writing (Well, actually already finished) a plugin that allowed admins to pay groups their weekly wages... But the thing is, seeing as there was no getAllPlayersInGroup() method, I made it so that admins would have to write a list of players that get paid wages in a config.yml.. As this is pretty tedious, (especially for large servers), I was thinking for my next major update, I could add a getAllPlayersInGroup() method or something similar and completely take out the need to list the players... If you could add it in, that would be amazing!

commented

hotshot2162 - Like I said, none of the permission systems support this, and even if you didn't link Vault you wouldn't be able to do it. (And I can't add in methods that the permission systems don't support...). Your best bet is to check what each player's linked group is and give them that amount, rather than checking each group for each amount. None of the permissions systems (except PEX) allow for getting a list of players in the group.

commented

It's not in most of the Permission systems (or more specifically P3, bPerms, GM, PB can't do it). Which means the only Permission system that allows it is PEX, and it returns it's own Group objects not a list of their names. What were you wanting to use it for?