fix(armar): fix parsing new a2s config (#4268)

This commit is contained in:
Marcin Jakubowski 2023-07-20 21:46:12 +02:00 committed by GitHub
parent 1149efd57f
commit 9be4a09497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -97,8 +97,8 @@ fn_info_game_armar() {
if [ ! -f "${servercfgfullpath}" ]; then
adminpassword="${unavailable}"
maxplayers="${zero}"
port=${port:-"0"}
queryport=
port="${zero}"
queryport="${zero}"
servername="${unavailable}"
serverpassword="${unavailable}"
else
@ -107,7 +107,7 @@ fn_info_game_armar() {
configip=$(jq -r '.bindAddress' "${servercfgfullpath}")
maxplayers=$(jq -r '.game.maxPlayers' "${servercfgfullpath}")
port=$(jq -r '.bindPort' "${servercfgfullpath}")
queryport=$(jq -r '.steamQueryPort' "${servercfgfullpath}")
queryport=$(jq -r '.a2s.port' "${servercfgfullpath}")
servername=$(jq -r '.game.name' "${servercfgfullpath}")
serverpassword=$(jq -r '.game.password' "${servercfgfullpath}")

View File

@ -876,7 +876,7 @@ fn_info_game_armar() {
fn_info_game_json "configip" ".bindAddress"
fn_info_game_json "maxplayers" ".game.maxPlayers"
fn_info_game_json "port" ".bindPort"
fn_info_game_json "queryport" ".steamQueryPort"
fn_info_game_json "queryport" ".a2s.port"
fn_info_game_json "servername" ".game.name"
fn_info_game_json "serverpassword" ".game.password"
fi