mirror of
https://github.com/CerberusV1/minecraft_deploy.git
synced 2026-01-13 11:24:04 +01:00
make it pretty kappa
This commit is contained in:
@@ -27,7 +27,7 @@ while true; do
|
|||||||
clear
|
clear
|
||||||
# Optionen definieren
|
# Optionen definieren
|
||||||
options=("Start Server" "Connect to Server" "Set EULA" "Set RAM" "Install Mods" "Exit") # Lists all the Options available in the script
|
options=("Start Server" "Connect to Server" "Set EULA" "Set RAM" "Install Mods" "Exit") # Lists all the Options available in the script
|
||||||
echo "ServerManager"
|
echo " ServerManager"
|
||||||
echo "----------------------------------------------"
|
echo "----------------------------------------------"
|
||||||
select opt in "${options[@]}"; do # Selects an option from a list and then does this
|
select opt in "${options[@]}"; do # Selects an option from a list and then does this
|
||||||
case $opt in
|
case $opt in
|
||||||
@@ -35,7 +35,7 @@ while true; do
|
|||||||
# Add an interaction Do you want to start the server y/n, so he is not starting
|
# Add an interaction Do you want to start the server y/n, so he is not starting
|
||||||
# right away.
|
# right away.
|
||||||
clear
|
clear
|
||||||
echo "Launch Menu"
|
echo " Launch Menu"
|
||||||
echo "------------------------------------------------------------"
|
echo "------------------------------------------------------------"
|
||||||
if [[ -e "${server}/eula.txt" ]]; then # Checks if the EULA file exists
|
if [[ -e "${server}/eula.txt" ]]; then # Checks if the EULA file exists
|
||||||
condition=$(cat "${server}/eula.txt" | grep -c "eula=true") # Sets the condition, in this case counting how many lines with eula=true exist in the EULA file
|
condition=$(cat "${server}/eula.txt" | grep -c "eula=true") # Sets the condition, in this case counting how many lines with eula=true exist in the EULA file
|
||||||
@@ -56,7 +56,7 @@ while true; do
|
|||||||
;;
|
;;
|
||||||
"Connect to Server")
|
"Connect to Server")
|
||||||
clear
|
clear
|
||||||
echo "Launch Menu"
|
echo " Connecting to Server"
|
||||||
echo "------------------------------------------------------------"
|
echo "------------------------------------------------------------"
|
||||||
# Add a chck before connecting to the session if the session already exists
|
# Add a chck before connecting to the session if the session already exists
|
||||||
# if not promt the user to start it manually
|
# if not promt the user to start it manually
|
||||||
@@ -67,7 +67,7 @@ while true; do
|
|||||||
"Set EULA")
|
"Set EULA")
|
||||||
current_date=$(date)
|
current_date=$(date)
|
||||||
clear
|
clear
|
||||||
echo " Setting EULA "
|
echo " Setting EULA "
|
||||||
echo "------------------------------------------------------------"
|
echo "------------------------------------------------------------"
|
||||||
echo "In order to start an minecraft Server you have to accept it."
|
echo "In order to start an minecraft Server you have to accept it."
|
||||||
echo "You can find more information here: "
|
echo "You can find more information here: "
|
||||||
|
|||||||
Reference in New Issue
Block a user