2021-10-22 18:14:20 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# Script used to fetch latest versions of external plugins
|
|
|
|
# Plugins: EssentialsX, FastAsyncWorldEdit, GeyserMC, ViaVersion, ViaBackwards, ViaRewind
|
|
|
|
|
|
|
|
mkdir -p fetched_plugins
|
|
|
|
|
|
|
|
# Fetch plugins
|
|
|
|
for download_url in https://ci.ender.zone/job/EssentialsX/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
2022-01-27 21:25:03 -05:00
|
|
|
https://ci.athion.net/job/FastAsyncWorldEdit/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
2023-12-16 19:17:49 -05:00
|
|
|
https://nightly.link/GeyserMC/Geyser/workflows/build/master/Geyser%20Spigot.zip \
|
2024-01-22 10:56:46 -05:00
|
|
|
https://ci.viaversion.com/job/ViaVersion/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
|
|
|
https://ci.viaversion.com/job/ViaBackwards/lastSuccessfulBuild/artifact/*zip*/archive.zip \
|
|
|
|
https://ci.viaversion.com/job/ViaRewind/lastSuccessfulBuild/artifact/*zip*/archive.zip
|
2021-10-22 18:14:20 -04:00
|
|
|
do
|
|
|
|
curl -L $download_url > archive.zip
|
|
|
|
unzip -o archive.zip
|
|
|
|
rm archive.zip
|
|
|
|
done
|
|
|
|
|
|
|
|
# Move plugins
|
|
|
|
mv archive/jars/EssentialsX-*.jar fetched_plugins/Essentials.jar
|
|
|
|
mv archive/artifacts/FastAsyncWorldEdit-Bukkit-*.jar fetched_plugins/FastAsyncWorldEdit.jar
|
2023-12-16 19:17:49 -05:00
|
|
|
mv Geyser-Spigot.jar fetched_plugins/Geyser.jar
|
2021-10-22 18:14:20 -04:00
|
|
|
mv archive/build/libs/ViaVersion-*.jar fetched_plugins/ViaVersion.jar
|
|
|
|
mv archive/build/libs/ViaBackwards-*.jar fetched_plugins/ViaBackwards.jar
|
2023-11-05 06:44:58 -05:00
|
|
|
mv archive/universal/build/libs/ViaRewind-*.jar fetched_plugins/ViaRewind.jar
|
2021-10-22 18:14:20 -04:00
|
|
|
|
|
|
|
# Clean up
|
|
|
|
rm -rf archive/
|