From 5a591e4f7e408272fc20b342a6671de6f4bb4447 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Thu, 26 Sep 2019 08:21:49 +0200 Subject: [PATCH] Tweaked Auto-Updater --- src/me/mrCookieSlime/Slimefun/SlimefunPlugin.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/me/mrCookieSlime/Slimefun/SlimefunPlugin.java b/src/me/mrCookieSlime/Slimefun/SlimefunPlugin.java index fd0bbed7b..35e65c17f 100644 --- a/src/me/mrCookieSlime/Slimefun/SlimefunPlugin.java +++ b/src/me/mrCookieSlime/Slimefun/SlimefunPlugin.java @@ -166,14 +166,18 @@ public final class SlimefunPlugin extends JavaPlugin { // Setting up the Auto-Updater Updater updater; - if (!getDescription().getVersion().startsWith("DEV - ")) { - // We are using an official build, use the BukkitDev Updater - updater = new BukkitUpdater(this, getFile(), 53485); - } - else { + if (getDescription().getVersion().startsWith("DEV - ")) { // If we are using a development build, we want to switch to our custom updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/Slimefun4/master"); } + else if (getDescription().getVersion().startsWith("RC - ")) { + // If we are using a development build, we want to switch to our custom + updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/Slimefun4/stable"); + } + else { + // We are using an official build, use the BukkitDev Updater + updater = new BukkitUpdater(this, getFile(), 53485); + } if (config.getBoolean("options.auto-update")) updater.start();