Browse Source

fix(eco): display correct values in display and fixup (#3034)

pull/3038/head
Christian 5 years ago
committed by GitHub
parent
commit
4d587e3bc6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      lgsm/functions/info_config.sh

15
lgsm/functions/info_config.sh

@ -353,6 +353,7 @@ fn_info_config_dontstarve(){
fn_info_config_eco(){
if [ ! -f "${servercfgfullpath}" ]; then
configip="${unavailable}"
servername="${unavailable}"
serverpassword="${unavailable}"
maxplayers="${zero}"
@ -360,14 +361,16 @@ fn_info_config_eco(){
port="${zero}"
webadminport="${zero}"
else
servername=$(jq -r .Description "${servercfgdir}/Network.eco")
serverpassword=$(jq -r .Password "${servercfgdir}/Network.eco")
maxplayers=$(jq -r .MaxConnections "${servercfgdir}/Network.eco")
tickrate=$(jq -r .MaxConnections "${servercfgdir}/Network.eco")
port=$(jq -r .Rate "${servercfgdir}/Network.eco")
webadminport=$(jq -r .WebServerPort "${servercfgdir}/Network.eco")
configip=$(jq -r '.IPAddress' "${servercfgfullpath}")
servername=$(jq -r '.Description' "${servercfgfullpath}")
serverpassword=$(jq -r '.Password' "${servercfgfullpath}")
maxplayers=$(jq -r '.MaxConnections' "${servercfgfullpath}")
tickrate=$(jq -r '.Rate' "${servercfgfullpath}")
port=$(jq -r '.GameServerPort' "${servercfgfullpath}")
webadminport=$(jq -r '.WebServerPort' "${servercfgfullpath}")
# Not Set
configip=${configip:-"NOT SET"}
servername=${servername:-"NOT SET"}
serverpassword=${serverpassword:-"NOT SET"}
maxplayers=${maxplayers=:-"0"}

Loading…
Cancel
Save