Fixed saving the spigot API instead of the actual server file

This commit is contained in:
2025-11-15 21:14:10 -05:00
parent 6e936a6bd1
commit 516ee66940
4 changed files with 13 additions and 12 deletions

View File

@@ -16,8 +16,6 @@ for ver in "${versions[@]}"; do
if [ "$?" -eq 0 ]; then
echo "Located spigot $ver successfully"
mvn -q org.apache.maven.plugins:maven-dependency-plugin:3.9.0:copy -Dartifact=org.spigotmc:spigot:${ver}-R0.1-SNAPSHOT -DoutputDirectory=/build
else
echo "Spigot $ver not located, building..."
if [ ! -d "${HOME}/buildtools" ]; then
@@ -29,8 +27,7 @@ for ver in "${versions[@]}"; do
java -jar BuildTools.jar --rev "$ver"
ARTIFACT="spigot-${ver}-R0.1-SNAPSHOT.jar"
mv "spigot-${ver}.jar" "$ARTIFACT"
ARTIFACT="spigot-${ver}.jar"
mv "$ARTIFACT" /build
fi
done