minor adjustments

This commit is contained in:
CerberusV1
2024-10-27 12:05:40 +01:00
parent 1e6df9a528
commit 0c2557d7ce
2 changed files with 13 additions and 3 deletions

View File

@@ -62,6 +62,8 @@ echo "find all server files and the management script."
echo 'Use "-" or "_" as name seperator!' echo 'Use "-" or "_" as name seperator!'
read -p "Servername: " name read -p "Servername: " name
# Setting directoriy variables
working_dir="$HOME/$name" working_dir="$HOME/$name"
management_dir="$HOME/$name/management" management_dir="$HOME/$name/management"
management_logs="$HOME/$name/management/installation_logs" management_logs="$HOME/$name/management/installation_logs"
@@ -80,7 +82,7 @@ mkdir $server_dir
echo What Modloader should be used? echo What Modloader should be used?
modloader=("Forge" "Fabric") modloader=("Forge" "Fabric" "Paper")
select opt in "${modloader[@]}" select opt in "${modloader[@]}"
do do
@@ -93,6 +95,11 @@ do
exit 1 exit 1
break break
;; ;;
"Paper")
echo "Paper is not supported yet"
exit 1
break
;;
*) *)
echo "Invalid selection" echo "Invalid selection"
;; ;;

View File

@@ -53,13 +53,16 @@ while true; do
# since every action in this menu doesn´t matter if agreed or not, the file gets # since every action in this menu doesn´t matter if agreed or not, the file gets
# overwritten # overwritten
# Using "Set EULA" should fix that # Using "Set EULA" should fix that
break
else else
echo "Something went wrong, please recreate the EULA" echo "Something went wrong, please recreate the EULA"
break
fi fi
# Error massage if the EULA file does not exist. Using "Set EULA" should fix that # Error massage if the EULA file does not exist. Using "Set EULA" should fix that
else else
echo "Before starting the server, please accept the EULA" echo "Before starting the server, please accept the EULA"
echo "error - missing file "eula.txt"" echo "error - missing file "eula.txt""
break
fi fi
# If the user prompts n in the server start menu, he returns back to the main menu # If the user prompts n in the server start menu, he returns back to the main menu
elif [[ ${start_answer} == "n" ]]; then elif [[ ${start_answer} == "n" ]]; then