Solved Giving Permission

Discussion in 'Plugin Development' started by 64BFox, Dec 10, 2012.

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

    64BFox

    Hello,
    I've been having some trouble recently with giving players permissions. I'm trying to write a plugin, and one part of the plugin involves reading permission nodes from a file and applying them to a player and/or group of players, however I can't figure out how to give a player a permission node without writing my own permission system that would have to interface with everything else. Any help on this issue would be greatly appreciated. Thanks :)

    - 64
     
  2. Offline

    youngbawss22

    I believe this quick tutorial will help. (Excuse me if it doesn't answer your question) .
     
  3. Offline

    Barinade

  4. Offline

    64BFox

    Those aren't what I'm looking for... Im trying to make a plugin that can parse permission nodes. I allready know how to give my plugin them, but I have no idea how to intercept the hasPermission() method and execute that via data retrieved from my own plugin files. Kind of like PEX. Any other ideas?
     
  5. Offline

    ImDeJay

    Code:
    if(player.haspermission("your.permission.node"){
    //they have the permission node, lets do some stuff here
    }else{
    //they dont have the permission node. sucks for them
    }
     
  6. Offline

    Barinade

  7. Offline

    64BFox

  8. Offline

    youngbawss22

    Wait you wanted to make a permissions plugin? I guess i done goofed...
     
Thread Status:
Not open for further replies.

Share This Page