private players array

This commit is contained in:
Steffen Schröder 2014-07-17 20:01:31 +02:00
parent 46665aa86c
commit fc2012080b
2 changed files with 3 additions and 4 deletions

View File

@ -40,14 +40,13 @@ class PlayerManager implements CallbackListener, TimerListener {
public $playerDetailed = null;
public $playerList = null;
public $adminLists = null;
/** @var Player[] $players */
/** @deprecated Use getPlayers() */
public $players = array();
/*
* Private Properties
*/
private $maniaControl = null;
/** @var Player[] $players */
private $players = array();
/**
* Construct a new Player Manager

View File

@ -509,7 +509,7 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
return;
}
if ($this->maxPlayers > (count($this->maniaControl->playerManager->players) - count($this->spectators))) {
if ($this->maxPlayers > ($this->maniaControl->playerManager->getPlayerCount() - count($this->spectators))) {
$this->moveFirstPlayerToPlay();
$this->showQueueWidgetSpectators();
}