feat: auto-update voicechat

fix: make geyser auto-update work again
This commit is contained in:
amyavi 2024-09-27 21:26:33 -03:00
parent 5a8e308ba0
commit c675f3145f
Signed by: amy
SSH key fingerprint: SHA256:CoLIqZWDYPZEhs1j1HQWwV0j1JhC3BFWcaUF7ZLZHJA

View file

@ -7,23 +7,27 @@ mkdir -p fetched_plugins
# Fetch plugins
for download_url in https://ci.ender.zone/job/EssentialsX/lastSuccessfulBuild/artifact/*zip*/archive.zip \
https://ci.athion.net/job/FastAsyncWorldEdit/lastSuccessfulBuild/artifact/*zip*/archive.zip \
https://nightly.link/GeyserMC/Geyser/workflows/build/master/Geyser%20Spigot.zip \
https://nightly.link/GeyserMC/Geyser/workflows/build/master/Geyser-Spigot.zip \
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
do
curl -L $download_url > archive.zip
curl -L "$download_url" > archive.zip
unzip -o archive.zip
rm archive.zip
done
## voicechat
curl -L https://cdn.modrinth.com/data/9eGKb6K1/versions/nS19YToN/voicechat-bukkit-2.5.20.jar -o voicechat.jar
# Move plugins
mv archive/jars/EssentialsX-*.jar fetched_plugins/Essentials.jar
mv archive/artifacts/FastAsyncWorldEdit-Bukkit-*.jar fetched_plugins/FastAsyncWorldEdit.jar
mv Geyser-Spigot.jar fetched_plugins/Geyser.jar
mv archive/build/libs/ViaVersion-*.jar fetched_plugins/ViaVersion.jar
mv archive/build/libs/ViaBackwards-*.jar fetched_plugins/ViaBackwards.jar
mv archive/universal/build/libs/ViaRewind-*.jar fetched_plugins/ViaRewind.jar
mv archive/build/libs/ViaRewind-*.jar fetched_plugins/ViaRewind.jar
mv voicechat.jar fetched_plugins/voicechat.jar
# Clean up
rm -rf archive/