Vault API

Discussion in 'Plugin Development' started by Tommy Raids, Dec 7, 2014.

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

    Tommy Raids

    Sorry for my lack of knowledge, but how would I check what group someone's in using Vault API? (GroupManager) yea, I tried looking around the examples and none of them really helps. s:
    Code:
    if(cmd.getName().equalsIgnoreCase("invis")){
                if(!p.hasPermission("litus.vanish.mod")) { //insert group here instead of perm??
                    p.sendMessage("Unknown command. Type \"/help\" for help.");
                }
     
  2. Offline

    Sleaker

    looks like your example just uses the bukkit API. the Vault page has information on how to get the Vault permission interface, all of the methods you would need to use for group related information are available on the javadocs here: http://milkbowl.github.io/VaultAPI/ an exmaple implementation is in VaultAPIs readme: https://github.com/MilkBowl/VaultAPI
     
    Tommy Raids likes this.
  3. Offline

    Tommy Raids

    Thanks :)
     
Thread Status:
Not open for further replies.

Share This Page