Sfoglia il codice sorgente

improvements for wetserver

Daniel Gibbs 9 anni fa
parent
commit
691bab9995
1 ha cambiato i file con 20 aggiunte e 5 eliminazioni
  1. 20 5
      lgsm/functions/command_details.sh

+ 20 - 5
lgsm/functions/command_details.sh

@@ -384,7 +384,7 @@ fn_details_refractor(){
 	} | column -s $'\t' -t
 }
 
-fn_details_idtech3(){
+fn_details_quakelive(){
 	echo -e "netstat -atunp | grep qzeroded"
 	echo -e ""
 	if [ -z "${port}" ]||[ -z "${rconport}" ]||[ -z "${statsport}" ]; then
@@ -399,6 +399,19 @@ fn_details_idtech3(){
 	} | column -s $'\t' -t
 }
 
+fn_details_wolfensteinenemyterritory(){
+	echo -e "netstat -atunp | grep etded"
+	echo -e ""
+	if [ -z "${port}" ]||[ -z "${rconport}" ]||[ -z "${statsport}" ]; then
+		echo -e "${red}ERROR!${default} Missing/commented ports in ${servercfg}."
+		echo -e ""
+	fi
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
 
 fn_details_seriousengine35(){
 	echo -e "netstat -atunp | grep Sam3_Dedicate"
@@ -621,8 +634,6 @@ fn_display_details() {
 		fn_details_minecraft
 	elif [ "${engine}" == "projectzomboid" ]; then
 		fn_details_projectzomboid
-	elif [ "${engine}" == "idtech3" ]; then
-		fn_details_idtech3
 	elif [ "${engine}" == "realvirtuality" ]; then
 		fn_details_realvirtuality
 	elif [ "${engine}" == "seriousengine35" ]; then
@@ -639,18 +650,22 @@ fn_display_details() {
 		fn_details_terraria
 	elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
 		fn_details_unreal
+	elif [ "${gamename}" == "7 Days To Die" ]; then
+		fn_details_sdtd
 	elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
 		fn_details_ark
 	elif [ "${gamename}" == "Hurtworld" ]; then
 		fn_details_hurtworld
-	elif [ "${gamename}" == "7 Days To Die" ]; then
-		fn_details_sdtd
+	elif [ "${gamename}" == "Quake Live" ]; then
+		fn_details_quakelive
 	elif [ "${gamename}" == "TeamSpeak 3" ]; then
 		fn_details_teamspeak3
 	elif [ "${gamename}" == "Mumble" ]; then
 		fn_details_mumble
 	elif [ "${gamename}" == "Rust" ]; then
 		fn_details_rust
+	elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then
+		fn_details_wolfensteinenemyterritory
 	else
 		fn_print_error_nl "Unable to detect server engine."
 	fi