From 0cadc02560a783a9a585755e139e877110279fd9 Mon Sep 17 00:00:00 2001 From: kremsy Date: Fri, 10 Jan 2014 18:16:14 +0100 Subject: [PATCH] resolved todo --- application/core/Players/PlayerList.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/application/core/Players/PlayerList.php b/application/core/Players/PlayerList.php index 4bccf55a..ef6723c8 100644 --- a/application/core/Players/PlayerList.php +++ b/application/core/Players/PlayerList.php @@ -576,12 +576,9 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener { $targetLogin = $actionArray[2]; switch($action) { - case self::ACTION_SPECTATE_PLAYER: // TODO not working yet - var_dump($adminLogin); - $this->maniaControl->client->query('ForceSpectator', $adminLogin, PlayerActions::SPECTATOR_SPECTATOR); - var_dump($this->maniaControl->client->getResponse()); + case self::ACTION_SPECTATE_PLAYER: + $this->maniaControl->client->query('ForceSpectator', $adminLogin, PlayerActions::SPECTATOR_BUT_KEEP_SELECTABLE); $this->maniaControl->client->query('ForceSpectatorTarget', $adminLogin, $targetLogin, 1); - var_dump($this->maniaControl->client->getResponse()); break; case self::ACTION_OPEN_PLAYER_DETAILED: $player = $this->maniaControl->playerManager->getPlayer($adminLogin);