mirror of
https://github.com/CerberusV1/minecraft_deploy.git
synced 2026-01-13 03:23:42 +01:00
added a todo and added ram allocation option
This commit is contained in:
@@ -34,3 +34,4 @@ bash -c "$(curl -sS https://raw.githubusercontent.com/CerberusV1/minecraft_deplo
|
|||||||
- Add support for a non-headless session (might not happen)
|
- Add support for a non-headless session (might not happen)
|
||||||
- Adding mod installer from link
|
- Adding mod installer from link
|
||||||
- Adding world import (ideas on how to do that would be appreciated)
|
- Adding world import (ideas on how to do that would be appreciated)
|
||||||
|
- Adding option to import/export white/blacklist
|
||||||
@@ -114,12 +114,59 @@ while true; do
|
|||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"Set RAM")
|
"Set RAM")
|
||||||
echo "Setting RAM..."
|
clear
|
||||||
|
echo " Allocate RAM "
|
||||||
|
echo "------------------------------------------------------------"
|
||||||
|
clear
|
||||||
|
presets=("1 GB" "2 GB" "4 GB" "8 GB" "16 GB" "Check")
|
||||||
|
select opt in "${presets[@]}"; do
|
||||||
|
case $opt in
|
||||||
|
"1 GB")
|
||||||
|
echo "Allocate 1GB of RAM"
|
||||||
|
echo "-Xms512M" > "${server}/user_jvm_args.txt"
|
||||||
|
echo "-Xmx1G" >> "${server}/user_jvm_args.txt"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
"2 GB")
|
||||||
|
echo "Allocate 2GB of RAM"
|
||||||
|
echo "-Xms1G" > "${server}/user_jvm_args.txt"
|
||||||
|
echo "-Xmx2G" >> "${server}/user_jvm_args.txt"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
"4 GB")
|
||||||
|
echo "Allocate 4GB of RAM"
|
||||||
|
echo "-Xms2G" > "${server}/user_jvm_args.txt"
|
||||||
|
echo "-Xmx4G" >> "${server}/user_jvm_args.txt"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
"8 GB")
|
||||||
|
echo "Allocate 8GB of RAM"
|
||||||
|
echo "-Xms4G" > "${server}/user_jvm_args.txt"
|
||||||
|
echo "-Xmx8G" >> "${server}/user_jvm_args.txt"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
"16 GB")
|
||||||
|
echo "Allocate 16GB of RAM"
|
||||||
|
echo "-Xms8G" > "${server}/user_jvm_args.txt"
|
||||||
|
echo "-Xmx16G" >> "${server}/user_jvm_args.txt"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
"Check")
|
||||||
|
cat "${server}/user_jvm_args.txt"
|
||||||
|
read -p "Enter"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "invalid input"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
read -p "Press Enter to continue..."
|
read -p "Press Enter to continue..."
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"Install Mods")
|
"Install Mods")
|
||||||
echo "Installing mods..."
|
clear
|
||||||
|
echo "Installing mods is not supported yet"
|
||||||
read -p "Press Enter to continue..."
|
read -p "Press Enter to continue..."
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user