diff --git a/scripts/testServer.sh b/scripts/testServer.sh index 6931fff82..0c5a5eb50 100755 --- a/scripts/testServer.sh +++ b/scripts/testServer.sh @@ -63,17 +63,24 @@ fi # JAR CHECK # -jar="$basedir/Paper-Server/target/paper-${minecraftversion}.jar" +folder="$basedir/Paper-Server" +jar="$folder/target/paper-${minecraftversion}.jar" +if [ ! -d "$folder" ]; then +( + echo "Building Patched Repo" + cd "$basedir" + ./paper patch +) +fi + if [ ! -f "$jar" ] || [ "$2" == "build" ] || [ "$3" == "build" ]; then ( echo "Building Paper" cd "$basedir" - ./paper patch - mvn clean install + mvn package ) fi - # # JVM FLAGS #