improved mc quit handling

This commit is contained in:
Steffen Schröder
2014-06-20 16:34:19 +02:00
parent f4681da6c5
commit 51e2fde2b0
2 changed files with 16 additions and 7 deletions

View File

@ -233,9 +233,9 @@ class ServerCommands implements CallbackListener, CommandListener, ManialinkPage
*
* @param string $login
*/
private function shutdownServer($login = '#') {
private function shutdownServer($login = '-') {
$this->maniaControl->log("Server shutdown requested by '{$login}'!");
$this->maniaControl->client->stopServer();
$this->maniaControl->quit("Server shutdown requested by '{$login}'");
}
/**