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

Plugin Disabled Call to undefined method

Discussion in 'Help' started by Archer, Mar 25, 2019.

  1. Archer

    Archer Spider Jockey

    Messages:
    34
    GitHub:
    archerunlimited
    A plugin, called EggWars I downloaded gets disabled when i do a /reload, and this come up in console: Call to undefined method pocketmine\Server::getScheduler()
    Just to let anyone helping me know I do not know too much about plugins, so instructions on what to do where would be appreciated. Some images below I think might help:

    [​IMG]
    [​IMG]
     
  2. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    remove $this->getServer() in line 53 in EggWars.php
     
  3. Archer

    Archer Spider Jockey

    Messages:
    34
    GitHub:
    archerunlimited
    There is no $this>getServer() on line 53
    This is line 53 [​IMG]
    The closest is on line 306
     
    Last edited: Mar 26, 2019
  4. Archer

    Archer Spider Jockey

    Messages:
    34
    GitHub:
    archerunlimited
    Also isnt their supposed to be ?> at the end of PHP? It may not be the issue im just tryna help. On the end of the php there is no ?>
     
  5. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Remove server::getInstance() and change to the main class's instance and then ->getScheduler()
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You don't need it iyf yourfile does not use the inline HTML output features.
     
  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.