Ehm.. Vault permissions to an OfflinePlayer?

Discussion in 'Plugin Development' started by Wituz, Aug 17, 2014.

Thread Status:
Not open for further replies.
  1. Hello dear bukkit'ers :)
    I've been struggling with this for a while now.
    I'm making a plugin that needs to set the permissions of an OfflinePlayer.
    To do that, I'm using Vault, since it's excellent at hooking into other permission plugins.

    This is the code I'm using now:
    Code:java
    1. if(!Main.permission.playerHas(null, Bukkit.getOfflinePlayer(name), permission)) Main.permission.playerAdd(null, Bukkit.getOfflinePlayer(name), permission);

    However, the player never recieves the permission.
    I'll give a cake to however helps me to solve this. [cake]
     
  2. Offline

    1Rogue

    Try removing the check, just add it regardless.
     
Thread Status:
Not open for further replies.

Share This Page