mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-30 12:57:52 +01:00
Updated to renamed API
This commit is contained in:
parent
c7b4a1ac06
commit
ab32c1de80
2
pom.xml
2
pom.xml
@ -50,7 +50,7 @@
|
||||
<dependency>
|
||||
<groupId>world.bentobox</groupId>
|
||||
<artifactId>bentobox</artifactId>
|
||||
<version>LATEST</version>
|
||||
<version>FC-0.81</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -23,21 +23,21 @@ import org.bukkit.inventory.ItemStack;
|
||||
import bentobox.addon.challenges.commands.admin.SurroundChallengeBuilder;
|
||||
import bentobox.addon.challenges.database.object.ChallengeLevels;
|
||||
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.PlayerData;
|
||||
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.database.BSBDatabase;
|
||||
import world.bentobox.bentobox.database.BBDatabase;
|
||||
import world.bentobox.bentobox.util.Util;
|
||||
|
||||
public class ChallengesManager {
|
||||
|
||||
public static final String FREE = "Free";
|
||||
private Map<ChallengeLevels, Set<Challenges>> challengeMap;
|
||||
private BSBConfig<Challenges> chConfig;
|
||||
private BSBConfig<ChallengeLevels> lvConfig;
|
||||
private BSBDatabase<PlayerData> players;
|
||||
private BBConfig<Challenges> chConfig;
|
||||
private BBConfig<ChallengeLevels> lvConfig;
|
||||
private BBDatabase<PlayerData> players;
|
||||
private ChallengesPanels challengesPanels;
|
||||
private Map<UUID,PlayerData> playerData;
|
||||
private ChallengesAddon addon;
|
||||
@ -45,10 +45,10 @@ public class ChallengesManager {
|
||||
public ChallengesManager(ChallengesAddon addon) {
|
||||
this.addon = addon;
|
||||
// Set up the configs
|
||||
chConfig = new BSBConfig<>(addon, Challenges.class);
|
||||
lvConfig = new BSBConfig<>(addon, ChallengeLevels.class);
|
||||
chConfig = new BBConfig<>(addon, Challenges.class);
|
||||
lvConfig = new BBConfig<>(addon, ChallengeLevels.class);
|
||||
// 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
|
||||
challengeMap = new LinkedHashMap<>();
|
||||
// Cache of player data
|
||||
|
Loading…
Reference in New Issue
Block a user