renamed player actions class

This commit is contained in:
Steffen Schröder
2014-07-19 23:37:19 +02:00
parent 61d80b340d
commit f0862f7f16
7 changed files with 44 additions and 44 deletions

View File

@ -15,7 +15,7 @@ use ManiaControl\Callbacks\TimerListener;
use ManiaControl\ManiaControl;
use ManiaControl\Manialinks\ManialinkPageAnswerListener;
use ManiaControl\Players\Player;
use ManiaControl\Players\PlayerActions;
use ManiaControl\Players\Actions;
use ManiaControl\Players\PlayerManager;
use ManiaControl\Plugins\Plugin;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
@ -337,7 +337,7 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
if ($this->maxPlayers > $this->maniaControl->playerManager->getPlayerCount(true)) {
try {
$this->maniaControl->client->forceSpectator($player->login, PlayerActions::SPECTATOR_PLAYER);
$this->maniaControl->client->forceSpectator($player->login, Actions::SPECTATOR_PLAYER);
} catch (Exception $e) {
// TODO: only possible valid exception should be "wrong login" - throw others (like connection error)
$this->maniaControl->chat->sendError("Error while leaving the Queue", $player->login);
@ -345,7 +345,7 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
}
try {
$this->maniaControl->client->forceSpectator($player->login, PlayerActions::SPECTATOR_USER_SELECTABLE);
$this->maniaControl->client->forceSpectator($player->login, Actions::SPECTATOR_USER_SELECTABLE);
} catch (Exception $e) {
// TODO: only possible valid exception should be "wrong login" - throw others (like connection error)
}