some fixes due new structure
This commit is contained in:
committed by
Steffen Schröder
parent
0c6d8c010c
commit
fd2f9faa6c
@ -174,7 +174,7 @@ class PlayerActions {
|
||||
|
||||
if($releaseSlot) {
|
||||
// Free player slot
|
||||
$this->maniaControl->client->spectatorReleasePlayerSlot($target->login);
|
||||
//$this->maniaControl->client->spectatorReleasePlayerSlot($target->login); //TODO not in spec exception mp crash
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -592,8 +592,8 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
|
||||
switch($action) {
|
||||
case self::ACTION_SPECTATE_PLAYER:
|
||||
$this->maniaControl->client->query('ForceSpectator', $adminLogin, PlayerActions::SPECTATOR_BUT_KEEP_SELECTABLE);
|
||||
$this->maniaControl->client->query('ForceSpectatorTarget', $adminLogin, $targetLogin, 1);
|
||||
$this->maniaControl->client->forceSpectator($adminLogin, PlayerActions::SPECTATOR_BUT_KEEP_SELECTABLE);
|
||||
//$this->maniaControl->client->forceSpectatorTarget($adminLogin, $targetLogin, 1); //TODO mc crash player is not a spectator
|
||||
break;
|
||||
case self::ACTION_OPEN_PLAYER_DETAILED:
|
||||
$player = $this->maniaControl->playerManager->getPlayer($adminLogin);
|
||||
|
Reference in New Issue
Block a user