tltneon / lgsl

LGSL v6.2.1/v7.0.0 for PHP 5.4-8.3+ (Live Game Server List): online status for CS2 (Source Query), Discord, FiveM, Rust, SA:MP, GMOD, Minecraft, Teamspeak and 200+ more games!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starbound in lgsl 7

wohahobg opened this issue · comments

Hello, how i can get status for game server in Starbound ? in wiki says it support Starbound but when i put protocol starbound it says

Array
(
    [b] => Array
        (
            [id] => 0
            [ip] => 45.84.197.14
            [c_port] => 21048
            [q_port] => 21048
            [s_port] => 0
            [type] => starbound
            [status] => 0
            [pending] => 0
        )

    [e] => Array
        (
        )

    [o] => Array
        (
            [zone] => 
            [comment] => 
        )

    [s] => Array
        (
            [players] => 0
            [playersmax] => 0
            [name] => LGSL PROBLEM: FUNCTION DOES NOT EXIST FOR TYPE starbound
            [game] => 
            [mode] => none
            [password] => 0
            [map] => World
            [cache_time] => Array
                (
                    [0] => 1710180343
                    [1] => 0
                    [2] => 0
                )

        )

    [p] => Array
        (
        )

    [h] => Array
        (
        )

usage:

    $server = new LGSL\Server([
        "ip" => "45.84.197.14", // server ip or hostname
        "c_port" => "21048", // for players
        "q_port" => "21048", // for querying
        "type" => "starbound" // protocol name
    ]);
    $server->lgsl_live_query("se"); // s - server info, e - extra data, p - players info

    echo '<pre>';
    print_r($server->to_array());
    echo '</pre>';