mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 09:54:17 +02:00
handle classless players
This commit is contained in:
parent
115e4a23af
commit
7df8f24ad5
1 changed files with 2 additions and 2 deletions
|
|
@ -84,12 +84,12 @@ class Parser {
|
|||
$class = $classId;
|
||||
}
|
||||
}
|
||||
if ($class && $player['steamId']) {//skip spectators
|
||||
if ($player['steamId'] && $player['steamId'] !== 'BOT') {//skip spectators
|
||||
$players[] = new ParsedPlayer(
|
||||
$player['name'],
|
||||
$player['userId'],
|
||||
$this->convertSteamIdToCommunityId($player['steamId']),
|
||||
$player['team'],
|
||||
$player['team'] ?? '',
|
||||
$this->getClassName((int) $class)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue