improved playerhandler

This commit is contained in:
kremsy
2013-11-09 21:35:43 +01:00
parent ced25e8ebe
commit 722e2fa695
5 changed files with 84 additions and 654 deletions

View File

@ -184,7 +184,11 @@ class ManiaControl {
if (!$this->chat->sendInformation('ManiaControl v' . self::VERSION . ' successfully started!')) {
trigger_error("Couldn't announce ManiaControl. " . $this->getClientErrorText());
}
//get PlayerList
$this->client->query('GetPlayerList', 300, 0, 2);
$this->playerHandler->addPlayerList($this->client->getResponse());
// OnInit
$this->callbacks->onInit();
@ -307,10 +311,6 @@ class ManiaControl {
}
}
}
$this->client->query('GetPlayerList', 300, 0, 2);
$this->playerHandler->addPlayerList($this->client->getResponse());
}
/**