isFakePlayer
This commit is contained in:
1 parent
390eb7b087
commit
a2c423e7e8
2 files changed
+7
-10
No files matched your search
@@ -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