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>';