Created
June 11, 2022 23:21
-
-
Save SharkWipf/a04f17093c0687c59c7b06a325a2dba6 to your computer and use it in GitHub Desktop.
Modified ftb server startup script, because theirs is broken af. Will get overwritten on updates if you don't rename it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "$(dirname "$0")" | |
if ! grep -q "eula=true" eula.txt; then | |
echo "Do you agree to the Mojang EULA available at https://account.mojang.com/documents/minecraft_eula ?" | |
read -N 1 -p "[y/n] " EULA | |
if [ "$EULA" = "y" ]; then | |
echo "eula=true" > eula.txt | |
echo | |
fi | |
fi | |
java -javaagent:log4jfix/Log4jPatcher-1.0.0.jar -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -Xmx6144M -Xms4096M @libraries/net/minecraftforge/forge/1.18.2-40.1.47/unix_args.txt nogui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment