some fixes due new structure

This commit is contained in:
kremsy
2014-01-16 19:40:54 +01:00
committed by Steffen Schröder
parent 0c6d8c010c
commit fd2f9faa6c
5 changed files with 16 additions and 15 deletions

View File

@ -82,7 +82,7 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener {
$this->maniaControl->authenticationManager->sendNotAllowed($player);
return;
}
$success = $this->maniaControl->client->query('AutoTeamBalance');
$success = $this->maniaControl->client->autoTeamBalance();
if(!$success) {
$this->maniaControl->chat->sendError('Error occurred: ' . $this->maniaControl->getClientErrorText(), $player->login);
return;
@ -246,7 +246,7 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener {
}
$success = true;
for($i = 0; $i < $amount; $i++) {
if(!$this->maniaControl->client->query('ConnectFakePlayer')) {
if(!$this->maniaControl->client->connectFakePlayer()) {
$success = false;
}
}
@ -268,7 +268,7 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener {
$this->maniaControl->authenticationManager->sendNotAllowed($player);
return;
}
$success = $this->maniaControl->client->query('DisconnectFakePlayer', '*');
$success = $this->maniaControl->client->disconnectFakePlayer('*');
if(!$success) {
$this->maniaControl->chat->sendError('Error occurred: ' . $this->maniaControl->getClientErrorText(), $player->login);
return;