Is There A Method To Set The OP Level?

Discussion in 'Spigot Plugin Development' started by TheShermanTanker, May 10, 2017.

  1. I know there is a setOp() method but is there a way to set the OP Level of the player? this is cause Builders on my server are OP Level 1 and Moderators are level 3 and I made /moderator PlayerName and /builder PlayerName but I can't figure out how to set the OP level
  2. Just get PEX and create builder groups and moderator groups. Much simpler.
    • Agree Agree x 1
  3. I do not recommend using OP on servers. Just use PEX as @Waldxn suggested, allows full control this way.
  4. I agree use a proper permissions plugin because If your op levels plugin ever fails to load or gets disabled suddenly all those ops have as much power as the owner!

    Sent from my iPhone using Tapatalk
  5. If you wanted to do this, without a permission plugin, you would have to read/write the ops.json, then figure a way to reload it so the proper level is set. The only methods available are #isOp() and #setOp(boolean).