Permission Questions

Discussion in 'Plugin Development' started by Zachster, May 23, 2013.

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

    Zachster

    Hi. I have a couple of questions about permissions. First off, how do you add permissions support to a plugin but yet have it still work for people that don't have a permissions plugin? Secondly, how do you make commands work even if the owner doesn't have a permissions plugin?
     
  2. Offline

    JWhy

    The questions are equal?
    if(player.hasPermission("myplugin.dosomething" ) || player.isOp()){
    //do something
    }
    Works without a permissions plugin
     
  3. Offline

    Zachster

    Ok now what about commands? I want commands to default to op if no permissions plugin.
     
  4. Offline

    Pink__Slime

    Zachster As JWhy said,
    Code:
    if(player.isOp()){
        // Do something
    }
     
Thread Status:
Not open for further replies.

Share This Page