PermissionsBukkit Group
aufdemrand opened this issue ยท 5 comments
Seems I am unable to check if a player is in a group when using PermissionsBukkit. PEX works fine.
Using perms.playerInGroup
Is this known?
nope, code looks fine for it. what are you trying to do? It might be finicky depending on if the group is world specific or not.
Just trying to do a very basic check.
Code looks like this: if (perms.playerInGroup(thisPlayer.getWorld(), thisPlayer.getName(), splitArgs[1])) { ... }
splitArgs[1] holds the name of the group, obviously.
I have tried the method without specifying the world too, since indeed the group is not world specific. I don't think I'm doing anything wrong, since it will work with PEX, but any suggestions would be appreciated. The error was reported to my by a user using PermissionsBukkit (I use PEX). I tested with the default permissions setup that it comes with.
and you've tried passing null for the world?
I've doublechecked all my code and it looks fine. The only way it would fail is if the group doesn't actually exist or if Bukkit and PB are mismatching the player name (incorrect casing). As PB uses case-sensitive player name checks.
the PB API is a mess, and I may not be able to get it fixed.
I will do some more testing and keep you informed. Not the highest priority thing on my list right now. Thanks for the reply.