Skip to content

Commit

Permalink
Removed bukkit-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBusyBiscuit committed Dec 30, 2019
1 parent 9e0b451 commit 58202ab
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/main/java/io/github/thebusybiscuit/souljars/SoulJars.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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"));
Expand Down

0 comments on commit 58202ab

Please sign in to comment.