Vault

Vault

7M Downloads

Essentials and bPerms

simonwhitepdx opened this issue ยท 3 comments

commented

This line:

vault.permissions.playerAdd(player, "essentials.give");

throws an null pointer exception when used with bpermissions or permissionsbukkit.

I don't really know what I'm talking about here but I had an issue with the plugin, Duties giving temp perms to people who are 'on duty' I made a ticket with the dev of that plugin and he told me the best thing I could do is come here and report it as an issue with vault because that's what this error:

19.06 15:47:09 [Server] INFO [Duties 1.1.3] Failed while enabling temporary permissions: Not a valid permission node: 'essentials.give'. Error: null. Ignoring it!

Told him. I'm not sure if he is right, just following orders, what can I do to fix this?

Thank you

-Simon

commented

Sorry, I forgot to mention, I'm also passing the world as null, so it can work with permissionsbukkit.

commented

So it would be: vault.permissions.playerAdd(player, "essentials.give", null);
If I remember right.

commented

please re-read the javadoc API. you're passing in null as the permission, not the world.

If you're wanting to do transient permissions (perms that do not persist) you should NOT be using playerAdd(). There are 2 transient permission methods for this.