src/T4G/BFP4F/Rcon/Base.php
public static function query($line, $bare = false) 
    {
        self::write($line, $bare);
        
        if(strpos($result = self::read($bare), 'rcon: unknown command:') === 0) return false;

        return $result;
    }
public static function query($line, $bare = false) 
    {
        self::write($line, $bare);
        
        if(strpos($result = self::read($bare), 'rcon: unknown command:') === 0) return false;

        return $result;
    }
public static function query ( $ line , $ bare = false ) { self :: write ( $ line , $ bare ) ; if ( strpos ( $ result = self :: read ( $ bare ) , 'rcon: unknown command:' ) === 0 ) return false ; return $ result ; }
Executes a Query on the Server

@param string $line
@param bool   $bare

@return string
Executes a Query on the Server