A repeating task of course. PHP: $this->getScheduler()->scheduleRepeatingTask(new Countdown($this), 20); PHP: <?phpnamespace Namespace;use pocketmine\scheduler\Task;class Countdown extends Task{ /** @var int $time */ public $time = 10; //sets the countdown to 10 seconds public function __construct(MainFile $plugin){ $this->plugin = $plugin; } public function onRun(int $currentTick) : void{ $this->time--; echo "Time: ".$this->time; if($this->time == 0) $this->plugin->getScheduler()->cancelTask($this->getTaskId()); }}