Hello, I shall want to add particle on Keep2 but my task does not want to run. keepgame.php PHP: public function onEnable() { $this->getServer()->getPluginManager()->registerEvents($this, $this); $task = new keepgametask($this); $this->getServer()->getScheduler()->scheduleRepeatingTask($task, 1); } keepgametask.php PHP: public function onRun($tick) { $this->plugin = $this->getOwner();$keepmap = $this->plugin->getServer()->getLevelByName("Keep2");$keepmap->addParticle(new FlameParticle(new Vector3(250, 33, 243))); // It's the line 35 } Error I does not understand this error because I used the class " pocketmine\level\particle" in both files. Sorry for my English, I'm French.
You have forget to use pocketmine\level\particle\FlameParticle, so plugin is trying to find that file in namespace of keepgamestask.php