lib/SteamCondenser/Servers/GameServer.php
public function updatePlayers($rconPassword = null) {
        $this->handleResponseForRequest(self::REQUEST_PLAYER);

        if(!$this->rconAuthenticated) {
            if($rconPassword == null) {
                return;
            }
            $this->rconAuth($rconPassword);
        }

        $players = [];
        foreach(explode("\n", $this->rconExec('status')) as $line) {
            if(strpos($line, '#') === 0 && $line != '#end') {
                $players[] = trim(substr($line, 1));
            }
        }
        $attributes = $this->getPlayerStatusAttributes(array_shift($players));

        foreach($players as $player) {
            $playerData = $this->splitPlayerStatus($attributes, $player);
            if(array_key_exists($playerData['name'], $this->playerHash)) {
                $this->playerHash[$playerData['name']]->addInformation($playerData);
            }
        }
    }
public function updatePlayers($rconPassword = null) {
        $this->handleResponseForRequest(self::REQUEST_PLAYER);

        if(!$this->rconAuthenticated) {
            if($rconPassword == null) {
                return;
            }
            $this->rconAuth($rconPassword);
        }

        $players = [];
        foreach(explode("\n", $this->rconExec('status')) as $line) {
            if(strpos($line, '#') === 0 && $line != '#end') {
                $players[] = trim(substr($line, 1));
            }
        }
        $attributes = $this->getPlayerStatusAttributes(array_shift($players));

        foreach($players as $player) {
            $playerData = $this->splitPlayerStatus($attributes, $player);
            if(array_key_exists($playerData['name'], $this->playerHash)) {
                $this->playerHash[$playerData['name']]->addInformation($playerData);
            }
        }
    }
Sends a A2S_PLAYERS request to the server and updates the players' data
for this server

As the players and their scores change quite often be sure to update
this list regularly by calling this method if you rely on this
information.

@param string $rconPassword The RCON password of this server may be
provided to gather more detailed information on the players, like
STEAM_IDs.
@see getPlayers()
@see handleResponseForRequest()