isFakePlayer

This commit is contained in:
kremsy
2013-12-29 12:13:45 +01:00
parent 390eb7b087
commit a2c423e7e8
2 changed files with 7 additions and 10 deletions

View File

@ -59,20 +59,17 @@ class Player {
$this->ipAddress = $rpcInfos['IPAddress'];
$this->joinTime = time();
}
/**
* Check if player is not a real player
*
* @return bool
*/
// TODO: check for bot players
public function isFakePlayer() { //TODO Bot have also positive pids, so this is useless, just stringmatch *fake
return ($this->pid <= 0);
public function isFakePlayer() {
return ($this->pid <= 0 || $this->path == "");
}