Start script generator

Build a start.bat, start.sh, systemd unit or Docker command for any server jar: RAM, Aikar's flags, Java check and auto-restart.

Your script — Velocity 3.5.0-SNAPSHOT (needs Java 21)

#!/bin/sh
# start.sh — Velocity 3.5.0-SNAPSHOT (generated by MCJarHub)
cd "$(dirname "$0")"
JAVA_MAJOR=$(java -version 2>&1 | awk -F'"' '/version/ {split($2, v, "."); print (v[1] == "1") ? v[2] : v[1]}')
if [ "$JAVA_MAJOR" -lt 21 ] 2>/dev/null; then echo "Java 21 or newer is required (found $JAVA_MAJOR)."; exit 1; fi
java -Xms1G -Xmx1G -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar velocity-3.5.0-SNAPSHOT-609.jar

Put it next to the server file from Velocity 3.5.0-SNAPSHOT. On Linux/macOS make it executable with chmod +x start.sh. Memory advice: RAM calculator.