queue plugin fix + players array private
This commit is contained in:
parent
41c19153a3
commit
7c7775e041
@ -41,6 +41,7 @@ class PlayerManager implements CallbackListener, TimerListener {
|
|||||||
public $playerList = null;
|
public $playerList = null;
|
||||||
public $adminLists = null;
|
public $adminLists = null;
|
||||||
/** @var Player[] $players */
|
/** @var Player[] $players */
|
||||||
|
/** @deprecated Use getPlayers() */
|
||||||
public $players = array();
|
public $players = array();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -351,7 +351,10 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
|
|||||||
|
|
||||||
$teams = array();
|
$teams = array();
|
||||||
/** @var Player $playerObj */
|
/** @var Player $playerObj */
|
||||||
foreach ($this->maniaControl->playerManager->players as $playerObj) {
|
foreach ($this->maniaControl->playerManager->getPlayers() as $playerObj) {
|
||||||
|
if($playerObj->isSpectator)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!isset($teams[$playerObj->teamId])) {
|
if (!isset($teams[$playerObj->teamId])) {
|
||||||
$teams[$playerObj->teamId] = 1;
|
$teams[$playerObj->teamId] = 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user