Solved Reading PEX permission YML with Vault

Discussion in 'Plugin Development' started by Etsijä, Apr 23, 2014.

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

    Etsijä

    I'm writing a statistics plugin, which uses Vault for the Permissions abstraction (we use PEX for perms handling). I am able to get a list of all permission groups in use on the server with the Vault method "permission.getGroups()", and each player's primary group with "permission.getPrimaryGroup()", but is it possible to also read the "prefix:" parameter (the chat color for a user group) for each group via Vault?

    I would use it for building a set of user groups in use on the server automatically with Vault, along with what chat color each is using. Now I know I could get my hand on the Prefix parameter by reading directly the "permissions.yml" of PEX, but that would somewhat obsolidate the use of Vault as an abstraction layer to permissions handling, wouldn't it?
     
  2. Offline

    tryy3

    chat.getGroupPrefix(String world, String group)
     
  3. Offline

    Etsijä

    Ah, didn't think about the Vault -> chat connection. Thanks!

    tryy, your solution works beautifully. Thanks again! I'll mark this as solved then.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page