isFakePlayer
This commit is contained in:
@ -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 == "");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user