Properly hook into vault?

Discussion in 'Plugin Development' started by BMX_ATVMAN14, Aug 31, 2012.

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

    BMX_ATVMAN14

    Hey all I can't seem to hook into vault correctly what am I doing wrong?

    PermsHandler:
    http://pastebin.com/70f85qFX


    Thanks!
    BMX

    Also can someone point me in the direction for color codes (Ex. Chatcolor.RED)
    Is there a list of all the colors

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

    JOPHESTUS

    [​IMG]
     
  3. Offline

    BMX_ATVMAN14

    Thanks

    JOPHESTUS
    arrgg help me please!

    else sender.sendMessage.ChatColor.RED("You don't have permission to do this.");
    What am I doing wrong I don't usually code colors

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  4. Offline

    Jigsaw

    Code:
    else sender.sendMessage(ChatColor.RED + "You don't have permission to do this.");
     
    JOPHESTUS likes this.
  5. Offline

    BMX_ATVMAN14

    Thank you!
     
  6. Offline

    Sleaker

    Don't use Vault if all you're checking is player.has() .. use player.hasPermission in bukkit, there isn't much of a reason, and it's only included for legacy support (P3)
     
  7. Offline

    Sushi

    You don't need to use Vault for just permissions... All of the major permissions systems (not sure about groupmanager) are compatible with SuperPerms.
     
  8. Offline

    BMX_ATVMAN14

    O
    Oh alright, how would I do that?

    http://pastie.org/4648851
    (I'm still learning)

    Thanks!
     
  9. Offline

    Sleaker

    if p is your player object you'd use:

    Code:
    p.hasPermission("my.permission.node")
     
  10. Offline

    BMX_ATVMAN14

    \
    Thanks
    So I can delete this then?
    http://pastie.org/4649623
     
Thread Status:
Not open for further replies.

Share This Page