Small error in Queue plugin
This commit is contained in:
parent
f77b5cb20a
commit
4c360c41de
@ -300,12 +300,12 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
|||||||
}
|
}
|
||||||
|
|
||||||
$teams = array();
|
$teams = array();
|
||||||
/** @var Player $player */
|
/** @var Player $playerObj */
|
||||||
foreach($this->maniaControl->playerManager->players as $player) {
|
foreach($this->maniaControl->playerManager->players as $playerObj) {
|
||||||
if(!isset($teams[$player->teamId])){
|
if(!isset($teams[$playerObj->teamId])){
|
||||||
$teams[$player->teamId] = 1;
|
$teams[$playerObj->teamId] = 1;
|
||||||
}else{
|
}else{
|
||||||
$teams[$player->teamId]++;
|
$teams[$playerObj->teamId]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user