Przeglądaj źródła

adding ts3 functions

UltimateByte 10 lat temu
rodzic
commit
9386317a77

+ 2 - 2
functions/command_ts3_server_password.sh

@@ -3,7 +3,7 @@
 # Author: Daniel Gibbs
 # Contributor : UltimateByte
 # Website: http://gameservermanagers.com
-lgsm_version="030116"
+lgsm_version="050116"
 
 # Description: Changes TS3 serveradmin password
 
@@ -68,4 +68,4 @@ else
 	fn_serveradmin_password_set
 	echo -en "\n"
 	command_stop.sh
-fi
+fi

+ 5 - 1
functions/core_functions.sh

@@ -2,7 +2,6 @@
 # LGSM core_functions.sh function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-lgsm_version="030116"
 
 # Description: Defines all functions to allow download and execution of functions using fn_runfunction.
 # This function is called first before any other function. Without this file other functions would not load.
@@ -85,6 +84,11 @@ functionfile="${FUNCNAME}"
 fn_runfunction
 }
 
+command_ts3_server_password.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
 fn_restart(){
 local modulename="Restarting"
 info_config.sh

+ 4 - 1
functions/core_getopt.sh

@@ -2,7 +2,7 @@
 # LGSM core_getopt.sh function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-lgsm_version="271215"
+lgsm_version="050116"
 
 # Description: getopt arguments.
 
@@ -90,6 +90,8 @@ case "$getopt" in
 		command_details.sh;;
 	b|backup)
 		command_backup.sh;;
+        pw|serveradmin-password)
+                command_ts3_server_password.sh;;
 	dev|dev-debug)
 		command_dev_debug.sh;;		
 	i|install)
@@ -113,6 +115,7 @@ case "$getopt" in
 		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
 		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
 		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
+		echo -e "\e[34mserveradmin-password\t\e[0mChanges TS3 server password."
 		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
 		echo -e "\e[34minstall\t\e[0mInstall the server."
 		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."