Jelajahi Sumber

Mods install/update/remove opt

UltimateByte 9 tahun lalu
induk
melakukan
f303ce2eb5
1 mengubah file dengan 20 tambahan dan 2 penghapusan
  1. 20 2
      lgsm/functions/core_getopt.sh

+ 20 - 2
lgsm/functions/core_getopt.sh

@@ -43,6 +43,12 @@ case "${getopt}" in
 		command_install.sh;;
 	ai|auto-install)
 		fn_autoinstall;;
+	mi|mods-install)
+		command_mods_install.sh;;
+	mu|mods-update)
+		command_mods_update.sh;;
+	mr|mods-remove)
+		command_mods_remove.sh;;
 	dd|detect-deps)
 		command_dev_detect_deps.sh;;
 	dg|detect-glibc)
@@ -76,6 +82,9 @@ case "${getopt}" in
 		echo -e "${blue}debug\t${default}d  |See the output of the server directly to your terminal."
 		echo -e "${blue}install\t${default}i  |Install the server."
 		echo -e "${blue}auto-install\t${default}ai |Install the server, without prompts."
+		echo -e "${blue}mods-install\t${default}mi |View and install available mods/addons."
+		echo -e "${blue}mods-update\t${default}mu |Update installed mods/addons."
+		echo -e "${blue}mods-remove\t${default}mr |Remove installed mods/addons."
 	} | column -s $'\t' -t
 	esac
 }
@@ -517,14 +526,20 @@ case "${getopt}" in
 		command_install.sh;;
 	ai|auto-install)
 		fn_autoinstall;;
+	fd|fastdl)
+		command_fastdl.sh;;
+	mi|mods-install)
+		command_mods_install.sh;;
+	mu|mods-update)
+		command_mods_update.sh;;
+	mr|mods-remove)
+		command_mods_remove.sh;;
 	dd|detect-deps)
 		command_dev_detect_deps.sh;;
 	dg|detect-glibc)
 		command_dev_detect_glibc.sh;;
 	dl|detect-ldd)
 		command_dev_detect_ldd.sh;;
-	fd|fastdl)
-		command_fastdl.sh;;
 	*)
 	if [ -n "${getopt}" ]; then
 		echo -e "${red}Unknown command${default}: $0 ${getopt}"
@@ -552,6 +567,9 @@ case "${getopt}" in
 		echo -e "${blue}install\t${default}i  |Install the server."
 		echo -e "${blue}auto-install\t${default}ai |Install the server, without prompts."
 		echo -e "${blue}fastdl\t${default}fd |Generates or update a FastDL directory for your server."
+		echo -e "${blue}mods-install\t${default}mi |View and install available mods/addons."
+		echo -e "${blue}mods-update\t${default}mu |Update installed mods/addons."
+		echo -e "${blue}mods-remove\t${default}mr |Remove installed mods/addons."
 	} | column -s $'\t' -t
 	esac
 }