From 21fba5081949a671b10ad5a1f5c163865a1fdec6 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 25 Jun 2021 23:41:09 +0100 Subject: [PATCH] soldat --- lgsm/functions/info_config.sh | 1 + lgsm/functions/info_messages.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lgsm/functions/info_config.sh b/lgsm/functions/info_config.sh index ee49f81b1..e7ddc62fb 100755 --- a/lgsm/functions/info_config.sh +++ b/lgsm/functions/info_config.sh @@ -1509,6 +1509,7 @@ fn_info_config_soldat(){ maxplayers=$(grep "Max_Players=" "${servercfgfullpath}" | tr -cd '[:digit:]') port=$(grep "Port=" "${servercfgfullpath}" | tr -cd '[:digit:]') queryport="${port}" + filesport=$((port+10)) servername=$(grep "Server_Name=" "${servercfgfullpath}" | awk -F '=' '{print $2}') serverpassword=$(grep "Game_Password=" "${servercfgfullpath}" | awk -F '=' '{print $2}') diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 85a50ce51..11b63707a 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -782,7 +782,7 @@ fn_info_message_ac(){ fn_port "Game" port udp fn_port "Game" port tcp fn_port "Query" queryport udp - fn_port "HTTP" httpport udp + fn_port "HTTP" httpport tcp } | column -s $'\t' -t } @@ -1435,11 +1435,11 @@ fn_info_message_wurmunlimited(){ fn_info_message_mta(){ { fn_port "header" - echo -e "> Game/Query\t${port}\tudp" - echo -e "> HTTP Server\t${httpport}\ttcp" + fn_port "Game" port udp if [ "${ase}" == "Enabled" ]; then - echo -e "> Query Port\t${queryport}\tudp" + fn_port "Query" queryport udp fi + fn_port "HTTP" httpport tcp } | column -s $'\t' -t } @@ -1463,9 +1463,9 @@ fn_info_message_barotrauma(){ fn_info_message_soldat(){ { fn_port "header" - echo -e "> Game\t${port}\tudp" - echo -e "> Query\t${queryport}\tudp" - echo -e "> FILES\t$((port+10))\ttcp" + fn_port "Game" port udp + fn_port "Query" queryport udp + fn_port "Files" filesport tcp } | column -s $'\t' -t }