resolved todo

This commit is contained in:
kremsy 2014-01-10 18:16:14 +01:00
parent 894ff70c54
commit 0cadc02560

View File

@ -576,12 +576,9 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
$targetLogin = $actionArray[2]; $targetLogin = $actionArray[2];
switch($action) { switch($action) {
case self::ACTION_SPECTATE_PLAYER: // TODO not working yet case self::ACTION_SPECTATE_PLAYER:
var_dump($adminLogin); $this->maniaControl->client->query('ForceSpectator', $adminLogin, PlayerActions::SPECTATOR_BUT_KEEP_SELECTABLE);
$this->maniaControl->client->query('ForceSpectator', $adminLogin, PlayerActions::SPECTATOR_SPECTATOR);
var_dump($this->maniaControl->client->getResponse());
$this->maniaControl->client->query('ForceSpectatorTarget', $adminLogin, $targetLogin, 1); $this->maniaControl->client->query('ForceSpectatorTarget', $adminLogin, $targetLogin, 1);
var_dump($this->maniaControl->client->getResponse());
break; break;
case self::ACTION_OPEN_PLAYER_DETAILED: case self::ACTION_OPEN_PLAYER_DETAILED:
$player = $this->maniaControl->playerManager->getPlayer($adminLogin); $player = $this->maniaControl->playerManager->getPlayer($adminLogin);