From a0981f0c81d73dbfc17225e4f3555c381973c6e7 Mon Sep 17 00:00:00 2001 From: themodernhakr Date: Tue, 11 Mar 2025 02:04:26 -0500 Subject: [PATCH] Auto-detect and download Benchmark in dev and stag --- server-properties/start.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server-properties/start.sh b/server-properties/start.sh index 77a83ed..0d52f79 100755 --- a/server-properties/start.sh +++ b/server-properties/start.sh @@ -78,6 +78,24 @@ fi git pull ) +# +# Import dev-tools +# +if [[ "$ENV" = "dev" || "stag" ]]; then + echo + echo "checking devtools..." + ( + source ./config/server-properties/helpers/curl.sh + cd ./world/datapacks + if [[ ! -f benchmark-v2-1-0.zip ]]; then + "missing Benchmark v2, downloading..." + __curl "https://files.ferdin.land/ferdinland/devtools/benchmark-v2-1-0.zip" > benchmark-v2-1-0.zip + fi + ) + echo "devltools all good!" + echo +fi + # # Copy server-properties #