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

Solved pocketmine\Server::getScheduler obsolete ?

Discussion in 'Development' started by Jules, Jul 11, 2018.

  1. Jules

    Jules Witch

    Messages:
    53
    GitHub:
    Julooooos
    hi, getScheduler cause error in one of my plugins. Help ?
     
  2. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    If you don't know $this->getServer()->getScheduler..... is now $this->getScheduler....
     
  3. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Check out the API > Scheduler tab in the changelog here. It explains everything very well. Basically, plugins have their own task schedulers now, so the server task scheduler was removed. Also, if you have a Task that extends PluginTask, you'll now need to implement the Task interface instead.
     
    KHAV likes this.
  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.