diff --git a/src/main/java/io/github/thebusybiscuit/souljars/SoulJars.java b/src/main/java/io/github/thebusybiscuit/souljars/SoulJars.java index ee89bb8..f0face3 100644 --- a/src/main/java/io/github/thebusybiscuit/souljars/SoulJars.java +++ b/src/main/java/io/github/thebusybiscuit/souljars/SoulJars.java @@ -26,7 +26,6 @@ import me.mrCookieSlime.Slimefun.cscorelib2.config.Config; import me.mrCookieSlime.Slimefun.cscorelib2.inventory.ItemUtils; import me.mrCookieSlime.Slimefun.cscorelib2.item.CustomItem; -import me.mrCookieSlime.Slimefun.cscorelib2.updater.BukkitUpdater; import me.mrCookieSlime.Slimefun.cscorelib2.updater.GitHubBuildsUpdater; import me.mrCookieSlime.Slimefun.cscorelib2.updater.Updater; @@ -47,21 +46,13 @@ public void onEnable() { // Setting up bStats new Metrics(this); - // 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(), 101706); - } - else { - // If we are using a development build, we want to switch to our custom - updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/SoulJars/master"); + if (getDescription().getVersion().startsWith("DEV - ")) { + Updater updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/SoulJars/master"); + + // Only run the Updater if it has not been disabled + if (cfg.getBoolean("options.auto-update")) updater.start(); } - // Only run the Updater if it has not been disabled - if (cfg.getBoolean("options.auto-update")) updater.start(); - jar = new SlimefunItemStack("SOUL_JAR", TEXTURE, "&bSoul Jar &7(Empty)", "", "&rKill a Mob while having this", "&rItem in your Inventory to bind", "&rtheir Soul to this Jar"); category = new Category(new CustomItem(jar, "&bSoul Jars", "", "&a> Click to open")); recipeType = new RecipeType(new CustomItem(Material.DIAMOND_SWORD, "&cKill the specified Mob", "&cwhile having an empty Soul Jar", "&cin your Inventory"));