MC ToolboxMC TOOLBOX

Server & Files

Server Start Script Generator

Generate Windows start.bat and Linux start.sh for your Minecraft server jar. Set heap size and optional Aikar JVM flags.

Java process

Java 25 is required for Paper 26.1 and newer.

Accept eula.txt before first start. Flags are a common starting point; tune for your host and Paper/Purpur version.

Generated start.bat

@echo off
:start
java -Xms2G -Xmx4G -jar "server.jar" nogui
echo Server stopped. Restarting in 5 seconds...
timeout /t 5
goto start

Server & Files

Minecraft Server Start Script Generator

Dedicated servers usually start with a short shell or batch script: java, heap sizes, optional JVM flags, and the server jar name. This generator builds start.bat and start.sh so you are not rewriting the same line after every reinstall. Optional Aikar-style G1 flags and a simple restart loop are available when you want them.

What this tool does

Pick the jar filename, min and max heap, whether to hide the GUI, whether to loop on crash, and whether to attach a common Paper-friendly flag set. You download Windows and Linux scripts and place them next to the jar. That is all scaffolding; the host still needs Java installed and enough free RAM.

After you download

Accept the Mojang EULA first so the jar will stay up. Put the script in the server folder. On Linux you may need chmod +x start.sh. On Windows, double-click works when java is on PATH. If the script cannot find the jar, fix the filename rather than guessing new flags.

Heap and the operating system

Xmx is the Java heap, not the whole machine. Leave headroom for the OS, native memory, and plugins that allocate outside the heap. The RAM Calculator on this site helps pick a starting number; the start script only writes the flags you chose.

Flags are not a lag cure

Aikar-style flags can be a reasonable baseline on many Paper servers. They will not fix fifty heavy plugins, a 32-chunk view distance for 100 players, or a weak CPU. After launch, use Spark or timings and adjust heap and software choices from real data.

Restart loops

A loop keeps the process coming back after a crash, which is handy on a home VPS. It can also hide a plugin that crash-loops every boot. Watch the console the first few restarts so you are not papering over a broken update.

Quick questions

Will flags fix TPS?

Sometimes they help a little. They do not fix bad plugins or a weak host.

Paper / Purpur ok?

Yes. Use the real jar filename you dropped in the folder.

Xms same as Xmx?

Common so the heap does not keep resizing. Still leave RAM for the OS.

Script says java not found?

Install a matching JDK/JRE and ensure it is on PATH for the user that runs the script.

GUI true or false?

Dedicated servers almost always use nogui. Desktop testing can leave the GUI on if you want it.

What do you think about this tool?

If something feels wrong, a Minecraft version is missing, the wording is confusing, or you have a better workflow idea, send it over. Real player feedback is how these tools get sharper.

Send feedback