mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-09 04:27:35 +08:00
fix(armar): fix parsing new a2s config (#4268)
This commit is contained in:
parent
1149efd57f
commit
9be4a09497
@ -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}")
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user