How to get the prefix out of vault?

Discussion in 'Plugin Development' started by MayoDwarf, Jan 3, 2014.

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

    MayoDwarf

    Using vault to get the player's rank and set it in front of their name in the tab list. How would I get the prefix of their group and set it in front of their name in the tab list with the prefix colors and name. Thanks - Jared

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  2. Offline

    CubieX

    Hook into the "chat" service provider and the "permissions" service provider of Vault.
    (see Vaults BukkitDev page to get an example).
    Then you can do
    Code:
    String playerGroup = perm.getPrimaryGroup(player);
          String chatPrefix = chat.getGroupPrefix(player.getWorld(), playerGroup);
     
Thread Status:
Not open for further replies.

Share This Page