How to check permission node for an offline player?

Discussion in 'Plugin Development' started by ryanhamshire, Oct 16, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    ryanhamshire

    I'm scanning the world and deleting land claims where the player hasn't been online for a while, AND doesn't have a specific permission node (let's call it the "on vacation" node). I can get an OfflinePlayer instance, but it doesn't have a hasPermission() method. If I call OfflinePlayer.getPlayer(), it will return NULL when the player is offline.

    Is there some workaround I can use to check whether or not an offline player has a permission node set?

    I did see this other thread, but I don't understand the answer at all. I think they're talking about parsing a YML file somewhere? Anyway, it's from January and I think the info may be outdated.

    http://forums.bukkit.org/threads/get-permissions-of-player-offline.55073/

    Thanks so much for any help you can provide! :)
     
  2. Offline

    Hoolean

    There currently is no way, although vault may let you. Not sure :/

    I recommend that you check when a player logs of if they have that permission, then save if they do or not. When you need to check, check your records and if they did have it, don't delete the land claim else do delete it.
     
    ferrybig likes this.
  3. Offline

    Sleaker

    depending on the permission system Vault contains offline permission checks to the best of its ability.
     
Thread Status:
Not open for further replies.

Share This Page