about http://learn-mc.ga/MCPE/#Vol4 we use the task for commands. PHP: $task = new tasks\MyTask($this, $sender->getName()); // Create the new class Task by calling $this->getServer()->getScheduler()->scheduleRepeatingTask($task, 10*20); And how can we write the task in the commands ?