Updated to renamed API

This commit is contained in:
tastybento 2018-08-05 20:39:18 -07:00
parent c7b4a1ac06
commit ab32c1de80
2 changed files with 10 additions and 10 deletions

View File

@ -50,7 +50,7 @@
<dependency> <dependency>
<groupId>world.bentobox</groupId> <groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId> <artifactId>bentobox</artifactId>
<version>LATEST</version> <version>FC-0.81</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -23,21 +23,21 @@ import org.bukkit.inventory.ItemStack;
import bentobox.addon.challenges.commands.admin.SurroundChallengeBuilder; import bentobox.addon.challenges.commands.admin.SurroundChallengeBuilder;
import bentobox.addon.challenges.database.object.ChallengeLevels; import bentobox.addon.challenges.database.object.ChallengeLevels;
import bentobox.addon.challenges.database.object.Challenges; import bentobox.addon.challenges.database.object.Challenges;
import bentobox.addon.challenges.database.object.PlayerData;
import bentobox.addon.challenges.database.object.Challenges.ChallengeType; import bentobox.addon.challenges.database.object.Challenges.ChallengeType;
import bentobox.addon.challenges.database.object.PlayerData;
import bentobox.addon.challenges.panel.ChallengesPanels; import bentobox.addon.challenges.panel.ChallengesPanels;
import world.bentobox.bentobox.api.configuration.BSBConfig; import world.bentobox.bentobox.api.configuration.BBConfig;
import world.bentobox.bentobox.api.user.User; import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.BSBDatabase; import world.bentobox.bentobox.database.BBDatabase;
import world.bentobox.bentobox.util.Util; import world.bentobox.bentobox.util.Util;
public class ChallengesManager { public class ChallengesManager {
public static final String FREE = "Free"; public static final String FREE = "Free";
private Map<ChallengeLevels, Set<Challenges>> challengeMap; private Map<ChallengeLevels, Set<Challenges>> challengeMap;
private BSBConfig<Challenges> chConfig; private BBConfig<Challenges> chConfig;
private BSBConfig<ChallengeLevels> lvConfig; private BBConfig<ChallengeLevels> lvConfig;
private BSBDatabase<PlayerData> players; private BBDatabase<PlayerData> players;
private ChallengesPanels challengesPanels; private ChallengesPanels challengesPanels;
private Map<UUID,PlayerData> playerData; private Map<UUID,PlayerData> playerData;
private ChallengesAddon addon; private ChallengesAddon addon;
@ -45,10 +45,10 @@ public class ChallengesManager {
public ChallengesManager(ChallengesAddon addon) { public ChallengesManager(ChallengesAddon addon) {
this.addon = addon; this.addon = addon;
// Set up the configs // Set up the configs
chConfig = new BSBConfig<>(addon, Challenges.class); chConfig = new BBConfig<>(addon, Challenges.class);
lvConfig = new BSBConfig<>(addon, ChallengeLevels.class); lvConfig = new BBConfig<>(addon, ChallengeLevels.class);
// Players is where all the player history will be stored // Players is where all the player history will be stored
players = new BSBDatabase<>(addon, PlayerData.class); players = new BBDatabase<>(addon, PlayerData.class);
// Cache of challenges // Cache of challenges
challengeMap = new LinkedHashMap<>(); challengeMap = new LinkedHashMap<>();
// Cache of player data // Cache of player data