fixed mistake
This commit is contained in:
parent
dac68bd5a3
commit
207d6630ee
@ -287,6 +287,24 @@ class AuthenticationManager implements CallbackListener, EchoListener, Communica
|
|||||||
return $admins;
|
return $admins;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all connected Players with less permission than the given Auth Level
|
||||||
|
*
|
||||||
|
* @api
|
||||||
|
* @param int $authLevel
|
||||||
|
* @return Player[]
|
||||||
|
*/
|
||||||
|
public function getConnectedPlayers($authLevel = self::AUTH_LEVEL_MODERATOR) {
|
||||||
|
$players = $this->maniaControl->getPlayerManager()->getPlayers();
|
||||||
|
$playerArray = array();
|
||||||
|
foreach ($players as $player) {
|
||||||
|
if (!self::checkRight($player, $authLevel)) {
|
||||||
|
array_push($playerArray, $player);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $playerArray;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether the Player has enough Rights
|
* Check whether the Player has enough Rights
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user