コード例 #1
0
ファイル: MatchEndTask.php プロジェクト: TuffDev/HungerGames
 public function onRun($currentTick)
 {
     Server::getInstance()->broadcastTip(TextFormat::DARK_BLUE . "[HungerGames]" . TextFormat::WHITE . " Match will end in " . $this->countdownVal, $this->arena->getPlayers());
     $this->countdownVal--;
     if ($this->countdownVal == 0) {
         $this->arena->onMatchEnd();
     }
 }