From 263390deb72ddad16f03361d6ee6c6d8f12c0a8d Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 30 Oct 2018 18:26:47 -0700 Subject: [PATCH] Updated to 0.12.0 API. --- pom.xml | 6 +++--- .../java/bentobox/addon/challenges/ChallengesAddon.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index df4732c..97eeb81 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ us.tastybento Challenges - 0.1.0-SNAPSHOT + 0.2.0-SNAPSHOT Challenges Challenges is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like ASkyBlock or AcidIsland. @@ -71,13 +71,13 @@ world.bentobox bentobox - 0.9.0-SNAPSHOT + 0.12.0-SNAPSHOT provided bskyblock.addon Level - 0.0.1-SNAPSHOT + 0.1.0-SNAPSHOT diff --git a/src/main/java/bentobox/addon/challenges/ChallengesAddon.java b/src/main/java/bentobox/addon/challenges/ChallengesAddon.java index 4d13d78..251daa0 100644 --- a/src/main/java/bentobox/addon/challenges/ChallengesAddon.java +++ b/src/main/java/bentobox/addon/challenges/ChallengesAddon.java @@ -6,7 +6,6 @@ import bentobox.addon.challenges.commands.ChallengesCommand; import bentobox.addon.challenges.commands.admin.Challenges; import world.bentobox.bentobox.api.addons.Addon; import world.bentobox.bentobox.api.commands.CompositeCommand; -import world.bentobox.bentobox.api.configuration.Config; /** * Add-on to BSkyBlock that enables challenges @@ -30,7 +29,7 @@ public class ChallengesAddon extends Addon { // Check if it is enabled - it might be loaded, but not enabled. if (getPlugin() == null || !getPlugin().isEnabled()) { Bukkit.getLogger().severe("BentoBox is not available or disabled!"); - this.setEnabled(false); + this.setState(State.DISABLED); return; } @@ -48,7 +47,7 @@ public class ChallengesAddon extends Addon { new ChallengesCommand(this, acidIslandCmd); CompositeCommand acidCmd = getPlugin().getCommandsManager().getCommand("acid"); new Challenges(this, acidCmd); - + } }); this.getPlugin().getAddonsManager().getAddonByName("BSkyBlock").ifPresent(a -> { @@ -76,6 +75,7 @@ public class ChallengesAddon extends Addon { return challengesManager; } + @Override public String getPermissionPrefix() { return permissionPrefix ; }