Skip to content

Instantly share code, notes, and snippets.

@TheonlyTazz
Created December 31, 2021 19:16
Show Gist options
  • Save TheonlyTazz/2c886eff17c473a265850fb341d25a48 to your computer and use it in GitHub Desktop.
Save TheonlyTazz/2c886eff17c473a265850fb341d25a48 to your computer and use it in GitHub Desktop.
Serverstart.sh for Create Above&Beyond
#!/bin/bash
while true
do
java -Xmx16G -Xms8G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=0 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:+UseG1GC -jar forge-1.16.5-36.2.8.jar nogui
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
echo "Rebooting in:"
for i in 12 11 10 9 8 7 6 5 4 3 2 1
do
echo "$i..."
sleep 1
done
echo "Rebooting now!"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment