瀏覽代碼

Mumble details

UltimateByte 10 年之前
父節點
當前提交
8f046e5956
共有 1 個文件被更改,包括 15 次插入2 次删除
  1. 15 2
      lgsm/functions/command_details.sh

+ 15 - 2
lgsm/functions/command_details.sh

@@ -286,7 +286,7 @@ fn_details_ports(){
 	echo -e "Change ports by editing the parameters in:"
 	echo -e "Change ports by editing the parameters in:"
 
 
 	parmslocation="${red}UNKNOWN${default}"
 	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[@]}"
 	for port_edit in "${ports_edit_array[@]}"
 	do
 	do
 		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
 		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
@@ -441,6 +441,17 @@ fn_details_teamspeak3(){
 	} | column -s $'\t' -t
 	} | 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(){
 fn_details_teeworlds(){
 	echo -e "netstat -atunp | grep teeworlds_srv"
 	echo -e "netstat -atunp | grep teeworlds_srv"
 	echo -e ""
 	echo -e ""
@@ -608,6 +619,8 @@ elif [ "${gamename}" == "7 Days To Die" ]; then
 	fn_details_sdtd
 	fn_details_sdtd
 elif [ "${gamename}" == "Teamspeak 3" ]; then
 elif [ "${gamename}" == "Teamspeak 3" ]; then
 	fn_details_teamspeak3
 	fn_details_teamspeak3
+elif [ "${gamename}" == "Mumble" ]; then
+	fn_details_mumble
 elif [ "${gamename}" == "Rust" ]; then
 elif [ "${gamename}" == "Rust" ]; then
 	fn_details_rust
 	fn_details_rust
 else
 else
@@ -615,4 +628,4 @@ else
 fi
 fi
 
 
 fn_details_statusbottom
 fn_details_statusbottom
-core_exit.sh
+core_exit.sh