Example #1
0
 protected function cancel($updateState = true)
 {
     \ManiaLive\Utilities\Logger::debug('cancel()');
     if ($updateState) {
         $this->matchMakingService->updateMatchState($this->matchId, Services\Match::PLAYER_LEFT);
     }
     $this->gui->createLabel($this->gui->getMatchoverText(), null, null, false, false);
     $this->connection->chatSendServerMessageToLanguage($this->dictionary->getChat(array(array('textId' => 'matchAborted', 'params' => array(static::PREFIX)))));
     $this->over();
 }