src/T4G/BFP4F/Rcon/Server.php
public function fetch()
    {
        $data = Base::query('bf2cc si');
        
        $spl = explode("\t", $data);
        
        $result = array
        (
            'name' => $spl[7],
            'map' => $spl[5],
            'playersCurrent' => $spl[3],
            'playersMax' => $spl[2],
            'playersJoining' => $spl[4],
            'tickets' => array($spl[10] - $spl[11], $spl[10] - $spl[16]),
            'ticketsMax' => $spl[10],
            'timeElapsed' => $spl[18],
            'timeRemaining' => $spl[19]
        );
        
        return (object) $result;
    }
public function fetch()
    {
        $data = Base::query('bf2cc si');
        
        $spl = explode("\t", $data);
        
        $result = array
        (
            'name' => $spl[7],
            'map' => $spl[5],
            'playersCurrent' => $spl[3],
            'playersMax' => $spl[2],
            'playersJoining' => $spl[4],
            'tickets' => array($spl[10] - $spl[11], $spl[10] - $spl[16]),
            'ticketsMax' => $spl[10],
            'timeElapsed' => $spl[18],
            'timeRemaining' => $spl[19]
        );
        
        return (object) $result;
    }
public function fetch ( ) { $ data = Base :: query ( 'bf2cc si' ) ; $ spl = explode ( "\t" , $ data ) ; $ result = array ( 'name' => $ spl [ 7 ] , 'map' => $ spl [ 5 ] , 'playersCurrent' => $ spl [ 3 ] , 'playersMax' => $ spl [ 2 ] , 'playersJoining' => $ spl [ 4 ] , 'tickets' => array ( $ spl [ 10 ] - $ spl [ 11 ] , $ spl [ 10 ] - $ spl [ 16 ] ) , 'ticketsMax' => $ spl [ 10 ] , 'timeElapsed' => $ spl [ 18 ] , 'timeRemaining' => $ spl [ 19 ] ) ; return ( object ) $ result ; }
Fetches Server Info
@return object
Fetches Server Info