From 1df8734dc9f4e4dc63c27e3f6d5621eeb5ff5fd9 Mon Sep 17 00:00:00 2001 From: kremsy Date: Tue, 14 Jan 2014 16:30:02 +0100 Subject: [PATCH] resolved two todos --- application/core/ManiaControl.php | 1 - application/core/Maps/MapCommands.php | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index 4783c3f6..5b953c40 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -31,7 +31,6 @@ require_once __DIR__ . '/FileUtil.php'; require_once __DIR__ . '/Formatter.php'; require_once __DIR__ . '/GbxDataFetcher/gbxdatafetcher.inc.php'; require_once __DIR__ . '/ManiaExchange/mxinfofetcher.inc.php'; -require_once __DIR__ . '/ManiaExchange/mxinfosearcher.inc.php'; require_once __DIR__ . '/ManiaExchange/ManiaExchangeManager.php'; require_once __DIR__ . '/Manialinks/ManialinkManager.php'; require_once __DIR__ . '/Statistics/StatisticManager.php'; diff --git a/application/core/Maps/MapCommands.php b/application/core/Maps/MapCommands.php index 89656182..c95f19c3 100644 --- a/application/core/Maps/MapCommands.php +++ b/application/core/Maps/MapCommands.php @@ -159,7 +159,9 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb $this->maniaControl->authenticationManager->sendNotAllowed($player); return; } - //TODO message + $message = '$<' . $player->nickname . '$> skipped the current Map!'; + $this->maniaControl->chat->sendSuccess($message); + $this->maniaControl->log($message, true); $this->maniaControl->client->query('NextMap'); } @@ -174,7 +176,9 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb $this->maniaControl->authenticationManager->sendNotAllowed($player); return; } - //TODO message + $message = '$<' . $player->nickname . '$> restarted the current Map!'; + $this->maniaControl->chat->sendSuccess($message); + $this->maniaControl->log($message, true); $this->maniaControl->client->query('RestartMap'); }