From d87e26b47a662ab1c5d3466f17bc44210a91eca3 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Wed, 22 Nov 2023 20:38:30 +0100 Subject: [PATCH] replace builds page with blob builds --- .../slimefun4/core/services/UpdaterService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/UpdaterService.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/UpdaterService.java index bea541fc2..68259b6b6 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/UpdaterService.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/UpdaterService.java @@ -5,6 +5,7 @@ import java.util.logging.Level; import javax.annotation.Nonnull; +import io.github.bakedlibs.dough.updater.BlobBuildUpdater; import org.bukkit.plugin.Plugin; import io.github.bakedlibs.dough.config.Config; @@ -53,7 +54,7 @@ public class UpdaterService { */ public UpdaterService(@Nonnull Slimefun plugin, @Nonnull String version, @Nonnull File file) { this.plugin = plugin; - GitHubBuildsUpdater autoUpdater = null; + BlobBuildUpdater autoUpdater = null; if (version.contains("UNOFFICIAL")) { // This Server is using a modified build that is not a public release. @@ -61,7 +62,7 @@ public class UpdaterService { } else if (version.startsWith("DEV - ")) { // If we are using a development build, we want to switch to our custom try { - autoUpdater = new GitHubBuildsUpdater(plugin, file, "TheBusyBiscuit/Slimefun4/master"); + autoUpdater = new BlobBuildUpdater(plugin, file, "Slimefun4", "Dev"); } catch (Exception x) { plugin.getLogger().log(Level.SEVERE, "Failed to create AutoUpdater", x); } @@ -70,7 +71,7 @@ public class UpdaterService { } else if (version.startsWith("RC - ")) { // If we are using a "stable" build, we want to switch to our custom try { - autoUpdater = new GitHubBuildsUpdater(plugin, file, "TheBusyBiscuit/Slimefun4/stable", "RC - "); + autoUpdater = new BlobBuildUpdater(plugin, file, "Slimefun4", "RC"); } catch (Exception x) { plugin.getLogger().log(Level.SEVERE, "Failed to create AutoUpdater", x); }