Bukkit/Spigot download URL switched by VERSION

#962
This commit is contained in:
Geoff Bourne 2021-07-09 19:55:46 -05:00
parent ca80b4730f
commit 11a286fe26

View file

@ -64,8 +64,12 @@ function downloadSpigot {
fi
if [[ -z $downloadUrl ]]; then
if versionLessThan 1.16.5; then
downloadUrl="https://cdn.getbukkit.org/${getbukkitFlavor}/${getbukkitFlavor}-${VANILLA_VERSION}.jar"
else
downloadUrl="https://download.getbukkit.org/${getbukkitFlavor}/${getbukkitFlavor}-${VANILLA_VERSION}.jar"
fi
fi
setServerVar
if [ -f $SERVER ]; then