Point the script at your server JAR
Set Operating system to the machine that runs your server. If you play on Windows but rent a Linux server, pick Linux or macOS. Use Minecraft version to see which Java installation the server needs.
Enter the exact name of the file in JAR filename. For example, if your server folder contains paper.jar, enter that name with the extension. Leave the field blank to use server.jar with Java defaults or velocity.jar with Velocity flags. The script uses the folder you save it in to find the JAR and your server settings.
Leave room for the machine to run
Use RAM allocation to set how much memory Java starts with and can grow to. Turn on Set minimum and maximum separately if you want Java to start with less memory than it can use later. You can enter 2G for the minimum and 4G for the maximum. Java, your operating system and any other apps also need memory, so keep the maximum below what the machine has available.
Try Java defaults first for a vanilla server. Use Velocity flags for a Velocity proxy JAR. If you choose Aikar's flags, the preset recommends using the same amount for both memory fields.
Start it from the server folder
- Use Download script and save the file next to your JAR.
- On Windows, run
start.bat. On Linux or macOS, open a terminal in the server folder and runbash start.sh. - Check the console for startup messages. If the script cannot find Java, open a terminal and run
java -versionto check your installation. On the first launch, Minecraft may ask you to review its EULA ineula.txt.
Turn off Restart after exit when working on the server. With it on, the script starts the server again five seconds after it stops. End the script with Ctrl+C when you want it to stay off.