Browse Source

update info_config

pull/3427/head
Daniel Gibbs 4 years ago
parent
commit
dc02d55cc3
  1. 4
      lgsm/functions/info_game.sh

4
lgsm/functions/info_game.sh

@ -1624,9 +1624,9 @@ fn_info_game_terraria(){
fn_info_game_stn(){
if [ -f "${servercfgfullpath}" ]; then
servername=$(sed -nr 's/^ServerName="(.*)"/\1/p' "${servercfgfullpath}")
configip=$(sed -nr 's/^ServerIP="(.*)"/\1/p' "${servercfgfullpath}")
configip=$(sed -nr 's/^ServerIP=([0-9]+)/\1/p' "${servercfgfullpath}")
port=$(sed -nr 's/^ServerPort=([0-9]+)/\1/p' "${servercfgfullpath}")
serverpassword=$(sed -nr 's/^ServerPassword=(.*)/\1/' "${servercfgfullpath}")
serverpassword=$(sed -nr 's/^ServerPassword=(.*)$/\1/p' "${servercfgfullpath}")
queryport=$((port + 1))
else
servername="${unavailable}"

Loading…
Cancel
Save