adding permissions to my plugin.

Discussion in 'Bukkit Help' started by alzan12, Dec 14, 2011.

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

    alzan12

    How do i add permissions to my plugin? I'm not using any permission plugins.

    How do i do this?

    if (your an op this code runs) {


    } else if(you are not an op this code runs {

    }
     
  2. Offline

    alzan12

    <bump>
     
  3. Offline

    Evenprime

    Quite simple. If you are only interested in OP or not, then do:

    Code:
    if(player.isOp()) {
      // do this
    }
    else {
      // do this
    }
    
    But that hasn't much to do with Permissions.
     
Thread Status:
Not open for further replies.

Share This Page