-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmaidfile.toml
9 lines (8 loc) · 1.24 KB
/
maidfile.toml
1
2
3
4
5
6
7
8
9
[env]
version = "0.1.0"
server = "paper-1.19.4-521.jar"
flags = "--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"
[tasks]
createServer = { hide = true, script = ["mkdir server", "wget https://api.papermc.io/v2/projects/paper/versions/1.19.4/builds/521/downloads/paper-1.19.4-521.jar server/paper-1.19.4-521.jar"] }
build = { info = "build requests jar", script = ["gradle build", "rm -rf server/plugins/requests/", "cp project/build/libs/requests-%{env.version}-all.jar server/plugins", "tmux send 'reload confirm' ENTER;"] }
start = { info = "test requests jar", depends = ["build"], path = "server", script = ["tmux new-session -d -s mc_server_testing 'java -Xms4096M -Xmx4096M %{env.flags} -jar %{env.server} --nogui'", "tmux a"] }