From c4ef273d6a8cee1f4e26c6624067a98e62de8c29 Mon Sep 17 00:00:00 2001 From: lrob Date: Mon, 22 Feb 2016 22:40:13 +0100 Subject: [PATCH] added rust --- functions/command_details.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/functions/command_details.sh b/functions/command_details.sh index 6de82eb8e..a8ee48931 100644 --- a/functions/command_details.sh +++ b/functions/command_details.sh @@ -537,6 +537,27 @@ echo -e "" fn_details_statusbottom } +fn_details_rust(){ +echo -e "" +echo -e "\e[92mPorts\e[0m" +printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = +echo -e "Change ports by editing the parameters in" +echo -e "rustserver script" +echo -e "" +echo -e "Useful port diagnostic command:" +echo -e "netstat -atunp | grep Rust" +echo -e "" +{ + echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL" + echo -e "> Game/RCON\tINBOUND\t${port}\tudp" + echo -e "> Query\tINBOUND\t${rconport}\ttcp" + +} | column -s $'\t' -t +echo -e "" + +fn_details_statusbottom +} + fn_details_unreal(){ echo -e "" echo -e "\e[92mPorts\e[0m" @@ -615,7 +636,7 @@ fn_details_disk fn_details_gameserver fn_details_backup # Some game servers do not have parms. -if [ "${gamename}" != "Teamspeak 3" ]||[ "${engine}" != "avalanche" ]||[ "${engine}" != "dontstarve" ]||[ "${engine}" == "projectzomboid" ]; then +if [ "${gamename}" != "Teamspeak 3" ]||[ "${engine}" != "avalanche" ]||[ "${engine}" != "dontstarve" ]||[ "${engine}" != "projectzomboid" ]; then fn_parms fn_details_commandlineparms fi @@ -654,6 +675,8 @@ elif [ "${gamename}" == "7 Days To Die" ]; then fn_details_sdtd elif [ "${gamename}" == "Teamspeak 3" ]; then fn_details_teamspeak3 +elif [ "${gamename}" == "Rust" ]; then + fn_details_rust else fn_printerrornl "Unable to detect server engine." fi