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

how do you use schdule

Comments in 'Plugin Development' started by musaichi, Sep 2, 2015.

  1. musaichi
    Offline

    musaichi New Member

    Joined:
    Mar 2, 2015
    Posts:
    33
    Minecraft User:
    musaichi
    64FF00 likes this.
  2. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    $this->getServer()->getScheduler()->scheduleDelayedTask(new BlahBlahBlahTask($this), $time);

    You can change Delayed to Repeating or DelayedRepeating task, BlahBlahBlahTask to the name of your task, & $time to the amount of time in ticks.
    64FF00 likes this.
  3. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    But first, if you don't know PHP, learn it. Same thing for the PocketMine API.
    64FF00 and musaichi like this.
  4. musaichi
    Offline

    musaichi New Member

    Joined:
    Mar 2, 2015
    Posts:
    33
    Minecraft User:
    musaichi
    thanks.i study PHP and PocketMine API
    64FF00 likes this.

Share This Page

Advertisement