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

Scheduler Error

Discussion in 'Plugin Help' started by Deleted member 3319, Oct 6, 2018.

  1. Can someone help how to fix this? Screenshot_20181006-170044_PocketMine-MP.jpg
     
  2. public function onEnable() {
    $this->getServer()->getPluginManager()->registerEvents($this, $this);
    @mkdir($this->getDataFolder());
    @mkdir($this->getDataFolder() . "/maps");
    $this->saveDefaultConfig();
    $this->reloadConfig();
    $this->getLogger()->info("§aTNTRun by §6CraftYourBukkit §aloaded.");
    $this->prefix = $this->getConfig()->get("prefix");
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new GameSender($this), 20);
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new RefreshSigns($this), 20);
    foreach ($this->getConfig()->getNested("arenas") as $a) {
    if (!$this->getServer()->getLevelByName($a["name"]) instanceof Level) {
    $this->deleteDirectory($this->getServer()->getDataPath() . "/worlds/" . $a["name"]);
    $this->copymap($this->getDataFolder() . "/maps/" . $a["name"], $this->getServer()->getDataPath() . "/worlds/" . $a["name"]);
    $this->getServer()->loadLevel($a["name"]);
    } else {
    $this->getServer()->unloadLevel($this->getServer()->getLevelByName($a["name"]));
    $this->deleteDirectory($this->getServer()->getDataPath() . "/worlds/" . $a["name"]);
    $this->copymap($this->getDataFolder() . "/maps/" . $a["name"], $this->getServer()->getDataPath() . "/worlds/" . $a["name"]);
    $this->getServer()->loadLevel($a["name"]);
    }
    }
    }
     
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    ask your dev to update your plugin
    they probably didnt update the scheduler
     
  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.