From 07d23a97d7c62289de9905a704705142bfd02bf0 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 27 Jun 2021 16:03:31 +0100 Subject: [PATCH] unreal99 --- lgsm/functions/info_messages.sh | 64 +++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 22 deletions(-) diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index fbbd51c1a..0f3ea0fc1 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -1296,28 +1296,11 @@ fn_info_message_tu(){ fn_info_message_unreal(){ fn_info_message_password_strip { - echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL\tINI VARIABLE" - echo -e "> Game\t${port}\tudp\tPort=${port}" - echo -e "> Query\t${queryport}\tudp" - if [ "${engine}" == "unreal" ]; then - echo -e "< UdpLink Port (random)\t${udplinkport}+\tudp" - fi - if [ "${engine}" != "unreal" ]&&[ "${appid}" != "223250" ]; then - echo -e "> Query (GameSpy)\t${queryportgs}\tudp\tOldQueryPortNumber=${queryportgs}" - fi - if [ "${appid}" == "215360" ]; then - echo -e "< Master server\t28852\ttcp/udp" - else - echo -e "< Master server\t28900/28902\ttcp/udp" - fi - if [ "${appid}" ]; then - if [ "${appid}" == "223250" ]; then - echo -e "> Steam\t20610\tudp" - else - echo -e "> Steam\t20660\tudp" - fi - fi - echo -e "> Web Admin\t${webadminport}\ttcp\tListenPort=${webadminport}" + fn_port "header" + fn_port "Game" port udp + fn_port "Query" queryport udp + fn_port "Beacon" beaconport udp + fn_port "HTTP" httpport tcp } | column -s $'\t' -t echo -e "" echo -e "${lightgreen}${servername} Web Admin${default}" @@ -1330,6 +1313,43 @@ fn_info_message_unreal(){ } | column -s $'\t' -t } +#fn_info_message_unreal(){ +# fn_info_message_password_strip +# { +# echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL\tINI VARIABLE" +# echo -e "> Game\t${port}\tudp\tPort=${port}" +# echo -e "> Query\t${queryport}\tudp" +# if [ "${engine}" == "unreal" ]; then +# echo -e "< UdpLink Port (random)\t${udplinkport}+\tudp"?? +# fi +# if [ "${engine}" != "unreal" ]&&[ "${appid}" != "223250" ]; then +# echo -e "> Query (GameSpy)\t${queryportgs}\tudp\tOldQueryPortNumber=${queryportgs}" +# fi +# if [ "${appid}" == "215360" ]; then +# echo -e "< Master server\t28852\ttcp/udp" +# else +# echo -e "< Master server\t28900/28902\ttcp/udp" +# fi +# if [ "${appid}" ]; then +# if [ "${appid}" == "223250" ]; then +# echo -e "> Steam\t20610\tudp" +# else +# echo -e "> Steam\t20660\tudp" +# fi +# fi +# echo -e "> Web Admin\t${webadminport}\ttcp\tListenPort=${webadminport}" +# } | column -s $'\t' -t +# echo -e "" +# echo -e "${lightgreen}${servername} Web Admin${default}" +# fn_messages_separator +# { +# echo -e "${lightblue}Web Admin enabled:\t${default}${webadminenabled}" +# echo -e "${lightblue}Web Admin url:\t${default}http://${webadminip}:${webadminport}" +# echo -e "${lightblue}Web Admin username:\t${default}${webadminuser}" +# echo -e "${lightblue}Web Admin password:\t${default}${webadminpass}" +# } | column -s $'\t' -t +#} + fn_info_message_unreal2(){ fn_info_message_password_strip {