hello i have a plugin that used to work but now i have this error and i cant seem to fix this! [10:30:32] [Server thread/CRITICAL]: [VaultChest] Could not execute task VaultChest\ParticleTask: Undefined property: VaultChest\ParticleTask::$owner [10:30:32] [Server thread/CRITICAL]: ErrorException: "Undefined property: VaultChest\ParticleTask::$owner" (EXCEPTION) in "ChestVault-master/src/VaultChest/ParticleTask" at line 20 the line(s): public function onRun($currentTick){ if($this->owner->isDisabled()) return; <- here foreach ($this->owner->getServer()->getLevels() as $lv) { <- and also here is owner used! did the api change in a way that i cannot go $this->owner ?
No, you just didnt define $this->owner by the looks of it. Show us the constructor you have in your task class and the lines where you called this task to be executed so we can show you where you went wrong.