Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

$this->api->ban->isOp(); for the New API?

Comments in 'Plugin Development' started by Renzo, Jul 16, 2014.

  1. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    PHP:
    $this->api->ban->isOp();
    //iam not sure if its the one above or below this !
    $this->ban->isOp();
    I dont know wich of the two is it iam on holliday and i cant remember it!
    What is it on the new api?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    $player->isOp().

    Also, keep in mind that, in old plugins, $this->api refers to the $this->api = $api; line you wrote at the front, and $this->ban has obviously been never defined.
  3. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    Sorry i did not know it my brains dont work on holiday :(

Share This Page

Advertisement