From 11a286fe261630c94005a0acbef5453952dbbf86 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 9 Jul 2021 19:55:46 -0500 Subject: [PATCH] Bukkit/Spigot download URL switched by VERSION #962 --- start-deployBukkitSpigot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start-deployBukkitSpigot b/start-deployBukkitSpigot index 4c8c3354..d673bab4 100644 --- a/start-deployBukkitSpigot +++ b/start-deployBukkitSpigot @@ -64,7 +64,11 @@ function downloadSpigot { fi if [[ -z $downloadUrl ]]; then - downloadUrl="https://download.getbukkit.org/${getbukkitFlavor}/${getbukkitFlavor}-${VANILLA_VERSION}.jar" + 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