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