small fix
This commit is contained in:
parent
d4b4161f68
commit
b2c2c98c78
@ -164,10 +164,13 @@ class PlayerManager implements CallbackListener {
|
||||
$login = $callback[1][0];
|
||||
$player = $this->removePlayer($login);
|
||||
|
||||
if ($player == null) {
|
||||
return;
|
||||
}
|
||||
// Trigger own callback
|
||||
$this->maniaControl->callbackManager->triggerCallback(self::CB_PLAYERDISCONNECTED, array(self::CB_PLAYERDISCONNECTED, $player));
|
||||
|
||||
if ($player == null || $player->isFakePlayer()) {
|
||||
if ($player->isFakePlayer()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -240,6 +243,7 @@ class PlayerManager implements CallbackListener {
|
||||
|
||||
/**
|
||||
* Gets the Count of all Player
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getPlayerCount() {
|
||||
@ -255,6 +259,7 @@ class PlayerManager implements CallbackListener {
|
||||
|
||||
/**
|
||||
* Gets the Count of all Spectators
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSpectatorCount() {
|
||||
|
Loading…
Reference in New Issue
Block a user