How to use the start script
- Put the script in the same folder as your server jar.
- Windows: save as
start.batand double-click it. Linux/macOS: save asstart.sh, runchmod +x start.sh, then./start.sh. - The first run creates
eula.txt. Seteula=trueafter reading the Minecraft EULA, then start again.
About Aikar’s flags
Aikar’s flags tune Java’s G1 garbage collector for Minecraft’s memory pattern and are recommended by the Paper project. Setting -Xms and -Xmx to the same value avoids the heap resizing during play. Leave 1–2 GB for the operating system, and more if other programs run on the same machine.
Recent Minecraft versions need a recent Java version (Java 21 for 1.20.5 and newer). If the server won’t start, check your Java version with java -version.