diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh index 2072835be..751be5d4c 100644 --- a/lgsm/functions/command_details.sh +++ b/lgsm/functions/command_details.sh @@ -286,7 +286,7 @@ fn_details_ports(){ echo -e "Change ports by editing the parameters in:" parmslocation="${red}UNKNOWN${default}" - local ports_edit_array=( "avalanche" "dontstarve" "projectzomboid" "idtech3" "realvirtuality" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "Teamspeak 3" "7 Days To Die" ) + local ports_edit_array=( "avalanche" "dontstarve" "projectzomboid" "idtech3" "realvirtuality" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "Teamspeak 3" "Mumble" "7 Days To Die" ) for port_edit in "${ports_edit_array[@]}" do if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then @@ -441,6 +441,17 @@ fn_details_teamspeak3(){ } | column -s $'\t' -t } +fn_details_mumble(){ + echo -e "netstat -atunp | grep murmur" + echo -e "" + port=$(cat "${servercfgfullpath}" | grep 'port=' | awk -F'=' '{ print $2 }' + { + echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL" + echo -e "> Voice\tIN&OUT\t${port}\tudp" + echo -e "> ServerQuery\tIN&OUT\t${port}\ttcp" + } | column -s $'\t' -t +} + fn_details_teeworlds(){ echo -e "netstat -atunp | grep teeworlds_srv" echo -e "" @@ -608,6 +619,8 @@ elif [ "${gamename}" == "7 Days To Die" ]; then fn_details_sdtd elif [ "${gamename}" == "Teamspeak 3" ]; then fn_details_teamspeak3 +elif [ "${gamename}" == "Mumble" ]; then + fn_details_mumble elif [ "${gamename}" == "Rust" ]; then fn_details_rust else @@ -615,4 +628,4 @@ else fi fn_details_statusbottom -core_exit.sh \ No newline at end of file +core_exit.sh