1');
    try {
      $server->rconAuth('passw0rd');
      echo $server->rconExec('status');
    }
    catch(RCONNoAuthException $e) {
      trigger_error('Could not authenticate with the game server.',
        E_USER_ERROR);
    }
  ruby: |
    server = SourceServer.new('127.0.0.1')
    begin
      server.rcon_auth('passw0rd')
      puts server.rcon_exec('status')
    rescue RCONNoAuthError
      warn 'Could not authenticate with the game server.'
    end
---
