Skip to content

Commit

Permalink
Updated to 0.12.0 API.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Oct 31, 2018
1 parent c14b242 commit 263390d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>us.tastybento</groupId>
<artifactId>Challenges</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.2.0-SNAPSHOT</version>

<name>Challenges</name>
<description>Challenges is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like ASkyBlock or AcidIsland.</description>
Expand Down Expand Up @@ -71,13 +71,13 @@
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>
<version>0.9.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>bskyblock.addon</groupId>
<artifactId>Level</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/bentobox/addon/challenges/ChallengesAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
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
Expand All @@ -30,7 +29,7 @@ public void onEnable() {
// 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;
}

Expand All @@ -48,7 +47,7 @@ public void onEnable() {
new ChallengesCommand(this, acidIslandCmd);
CompositeCommand acidCmd = getPlugin().getCommandsManager().getCommand("acid");
new Challenges(this, acidCmd);

}
});
this.getPlugin().getAddonsManager().getAddonByName("BSkyBlock").ifPresent(a -> {
Expand Down Expand Up @@ -76,6 +75,7 @@ public ChallengesManager getChallengesManager() {
return challengesManager;
}

@Override
public String getPermissionPrefix() {
return permissionPrefix ;
}
Expand Down

0 comments on commit 263390d

Please sign in to comment.