fix(tw): correct game info

This commit is contained in:
Daniel Gibbs 2023-09-10 21:57:32 +01:00
parent 928de3b36f
commit 622e2869b1
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55

View File

@ -2060,11 +2060,11 @@ fn_info_game_terraria() {
# Filetype: cfg
fn_info_game_tw() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_quakec "servername" "sv_name"
fn_info_game_quakec "serverpassword" "password"
fn_info_game_quakec "rconpassword" "sv_rcon_password"
fn_info_game_quakec "port" "sv_port"
fn_info_game_quakec "maxplayers" "sv_max_clients"
fn_info_game_keyvalue_pairs_space "servername" "sv_name"
fn_info_game_keyvalue_pairs_space "serverpassword" "password"
fn_info_game_keyvalue_pairs_space "rconpassword" "sv_rcon_password"
fn_info_game_keyvalue_pairs_space "port" "sv_port"
fn_info_game_keyvalue_pairs_space "maxplayers" "sv_max_clients"
fi
queryport="${port}"
servername="${servername:-"NOT SET"}"