This is a premade batch file script that enables you to start your Minecraft Server.
It contains the follwing features:
- Customize title
- Customize start & close messages
- Restart without closing the console
And it contains to types:
✔ Java 10+
✔ Windows
Put your server core (.jar file) and the batch script into a same folder and double click the batch script.
title A Minecraft Server
Your script title.
color f
echo A message
Send a colored message to the console.
Java -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=45 -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -Dfml.queryResult=confirm -Xmx1G -Xms1G -jar server-core.jar --nojline nogui
-Xmx1G
: You can customize the storage allocation by changing the number "1".
-Xms1G
: You can customize the storage allocation by changing the number "1".
server-core.jar
: Your server core file name. Must put the server core and this batch file into the same folder.
--nojline nogui
: Remove this code if you want to use the default GUI.
ProTip! You can get more flags in flags.sh.