1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Need some help!

Discussion in 'Plugin Help' started by iiFlamiinBlaze, Sep 17, 2017.

  1. iiFlamiinBlaze

    iiFlamiinBlaze Witch

    Messages:
    59
    GitHub:
    iiflamiinblaze
    How would I make each warp have a certain permission (ex. examplewarpplugin.warp.use.<warp name>), I can not figure it out for the life of me.
     
  2. Rysieku

    Rysieku Spider Jockey

    Messages:
    34
    GitHub:
    rysieku
    PHP:
    if($sender->hasPermission("examplewarpplugin.warp.use.example")) {
    //Teleport
    }
    else {
    $sender->sendMessage("No perms");
    }
    Use this for every case.
    Just replace permission
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.