lib/SteamCondenser/Servers/GoldSrcServer.php
public function rconExec($command) {
        if (!$this->rconAuthenticated) {
            throw new RCONNoAuthException();
        }

        try {
            return trim($this->socket->rconExec($this->rconPassword, $command));
        } catch (RCONNoAuthException $e) {
            $this->rconAuthenticated = false;
            throw $e;
        }
    }
public function rconExec($command) {
        if (!$this->rconAuthenticated) {
            throw new RCONNoAuthException();
        }

        try {
            return trim($this->socket->rconExec($this->rconPassword, $command));
        } catch (RCONNoAuthException $e) {
            $this->rconAuthenticated = false;
            throw $e;
        }
    }
Remotely executes a command on the server via RCON

@param string $command The command to execute on the server via RCON
@return string The output of the executed command
@see rconExec()
@throws RCONNoAuthException if no correct RCON password has been given
yet or it is rejected by the server
@throws SteamCondenserException if a problem occurs while parsing the
reply
@throws TimeoutException if the request times out