How do I check if someone is op?

Discussion in 'Plugin Development' started by Vetlix, Jun 14, 2019 at 5:44 AM.

  1. Offline

    Vetlix

    Hey, I want to check if someone is op or has the permission plugin.permission so basically if they are op they can run the command and if not.
    Heres my code:
    if(p.hasPermission(("plugin.permission")))
     
  2. Offline

    timtower Ninja on the waves Moderator

Share This Page