diff --git a/functions/command_ts3_server_password.sh b/functions/command_ts3_server_password.sh index 7aee7b9f1..bb3803015 100644 --- a/functions/command_ts3_server_password.sh +++ b/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 \ No newline at end of file diff --git a/functions/core_functions.sh b/functions/core_functions.sh index 698365058..2f8d41654 100644 --- a/functions/core_functions.sh +++ b/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 diff --git a/functions/core_getopt.sh b/functions/core_getopt.sh index 2b90be321..38143b728 100644 --- a/functions/core_getopt.sh +++ b/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."