Vault

Vault

7M Downloads

Permissions Yeti 3.

Wouter0100 opened this issue ยท 3 comments

commented

Hey.

When i startup my server, everything works fine.
But when i'm trying to give me VIP with a command, it fails.
I'm using this code:

                            attacker.sendMessage("1: " + NLMinecraftPlugin.permission.playerAddGroup(attacker, "VIP"));
                            attacker.sendMessage("2: " + NLMinecraftPlugin.permission.playerRemoveGroup(attacker, "Normaal"));
                            attacker.sendMessage("3: " + NLMinecraftPlugin.permission.playerAddGroup("world", attacker.getName(), "VIP"));
                            attacker.sendMessage("4: " + NLMinecraftPlugin.permission.playerRemoveGroup("world", attacker.getName(), "Normaal"));
                            attacker.sendMessage("5: " + NLMinecraftPlugin.permission.playerAddGroup(NLMinecraftPlugin.Plugin.getServer().getWorld("world"), attacker.getName(), "VIP"));
                            attacker.sendMessage("6: " + NLMinecraftPlugin.permission.playerRemoveGroup(NLMinecraftPlugin.Plugin.getServer().getWorld("world"), attacker.getName(), "Normaal"));

Everything is returning false.
What do i wrong, Nothing?

Thanks!
Wouter0100

commented

I'll need to double check the P3 code, but it may not support mutable permission properly.

commented

Yea, okay, i only need to set "Normaal" (Dutch for normal) to "VIP".

                        if(NLMinecraftPlugin.permission.playerInGroup(attacker, "Normaal"))
                        {

i'm using this, that works.

commented

should be fixed in latest commits.