13 lines
902 B
Bash
Executable File
13 lines
902 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ "$#" -le 1 ]; then
|
|
echo "Using default spigot version 1.21.10"
|
|
export REV=1.21.10
|
|
else
|
|
echo "Using spigot version $1"
|
|
export REV="$1"
|
|
fi
|
|
|
|
SCRIPT_DIR=$(dirname "$0")
|
|
|
|
"./$SCRIPT_DIR/run.sh" java -Xms4096M -Xmx4096M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar "$SCRIPT_DIR/build/spigot-${REV}-R0.1-SNAPSHOT.jar" --nogui |