Vault

Vault

7M Downloads

Worldpermissions

Blackixx opened this issue ยท 1 comments

commented

I want to work with worldpermissions with Vault, but it dont works...
This is my code:

http://pastie.org/4232222

When it should add the permissions node for only one world, it added it for each world, and if I wanted it for each world it only added the permissions node for the world, the player is inside....

PointShop is the main plugin, permN the permissions node, p the Player and perms is the Vault Permission.

With this : "PointShop.perms.playerAdd(p, permN);", it should add the permission to the player at each world, but it only adds it at the world, the player is.

Then I also created something, that should add the permission only for one specific world.
This looks like that:
"PointShop.perms.playerAdd(world, p, permN);"
But instead adding the permissions node to the world, the plugin adds it to each world.

I only tested this with PEX but it looks a bit buggy...

commented

playerAdd(player, permission) adds only to the players current world, if you want to add Global permissions you MUST specifically designate null as the world. This is also shown on the javadocs.

Since it's adding to all permissions when you are trying to add to a specific world, it's pretty obvious that your attempt to get the world is returning null.