|
|
@@ -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}")
|
|
|
|