|
|
@ -95,22 +95,24 @@ fn_info_game_arma3(){ |
|
|
|
|
|
|
|
fn_info_game_armar(){ |
|
|
|
if [ -f "${servercfgfullpath}" ]; then |
|
|
|
adminpassword=$(jq -r '.adminPassword' "${servercfgfullpath}") |
|
|
|
configip=$(jq -r '.gameHostBindAddress' "${servercfgfullpath}") |
|
|
|
maxplayers=$(jq -r '.game.playerCountLimit' "${servercfgfullpath}") |
|
|
|
port=$(jq -r '.gameHostBindPort' "${servercfgfullpath}") |
|
|
|
queryport=$(jq -r '.steamQueryPort' "${servercfgfullpath}") |
|
|
|
servername=$(jq -r '.game.name' "${servercfgfullpath}") |
|
|
|
serverpassword=$(jq -r '.game.password' "${servercfgfullpath}") |
|
|
|
maxplayers=$(jq -r '.game.playerCountLimit' "${servercfgfullpath}") |
|
|
|
adminpassword=$(jq -r '.adminPassword' "${servercfgfullpath}") |
|
|
|
battleeyeport=1376 |
|
|
|
|
|
|
|
|
|
|
|
# Not set |
|
|
|
adminpassword=${adminpassword:-"NOT SET"} |
|
|
|
configip=${configip:-"0.0.0.0"} |
|
|
|
maxplayers=${maxplayers:-"0"} |
|
|
|
port=${port:-"0"} |
|
|
|
queryport=${queryport:-"0"} |
|
|
|
servername=${servername:-"NOT SET"} |
|
|
|
serverpassword=${serverpassword:-"NOT SET"} |
|
|
|
maxplayers=${maxplayers:-"0"} |
|
|
|
adminpassword=${adminpassword:-"NOT SET"} |
|
|
|
else |
|
|
|
port=${port:-"0"} |
|
|
|
servername="${unavailable}" |
|
|
|