private players array
This commit is contained in:
parent
46665aa86c
commit
fc2012080b
@ -40,14 +40,13 @@ class PlayerManager implements CallbackListener, TimerListener {
|
|||||||
public $playerDetailed = null;
|
public $playerDetailed = null;
|
||||||
public $playerList = null;
|
public $playerList = null;
|
||||||
public $adminLists = null;
|
public $adminLists = null;
|
||||||
/** @var Player[] $players */
|
|
||||||
/** @deprecated Use getPlayers() */
|
|
||||||
public $players = array();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
|
/** @var Player[] $players */
|
||||||
|
private $players = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new Player Manager
|
* Construct a new Player Manager
|
||||||
|
@ -509,7 +509,7 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
|
|||||||
return;
|
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->moveFirstPlayerToPlay();
|
||||||
$this->showQueueWidgetSpectators();
|
$this->showQueueWidgetSpectators();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user