Here I'm cancelling all tasks but I want to cancel a single task. How to do it Here I'm just cancelling all tasks by $this->plugin->getScheduler()->cancelAllTasks();
When canceling a task in pm4, please throw CancelTaskException. Considering using this: use pocketmine\scheduler\CancelTaskException; throw new CancelTaskException();