Updated to work with latest BSB

This commit is contained in:
Tastybento 2018-04-15 17:31:41 -07:00
parent 18a300c801
commit b6dc87bfc9
2 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@ import bskyblock.addon.challenges.database.object.PlayerData;
import bskyblock.addon.challenges.panel.ChallengesPanels;
import us.tastybento.bskyblock.api.configuration.BSBConfig;
import us.tastybento.bskyblock.api.user.User;
import us.tastybento.bskyblock.database.BSBdatab;
import us.tastybento.bskyblock.database.BSBDatabase;
import us.tastybento.bskyblock.util.Util;
public class ChallengesManager {
@ -36,7 +36,7 @@ public class ChallengesManager {
private Map<ChallengeLevels, Set<Challenges>> challengeMap;
private BSBConfig<Challenges> chConfig;
private BSBConfig<ChallengeLevels> lvConfig;
private BSBdatab<PlayerData> players;
private BSBDatabase<PlayerData> players;
private ChallengesPanels challengesPanels;
private Map<UUID,PlayerData> playerData;
private ChallengesAddon addon;
@ -47,7 +47,7 @@ public class ChallengesManager {
chConfig = new BSBConfig<>(addon, Challenges.class);
lvConfig = new BSBConfig<>(addon, ChallengeLevels.class);
// Players is where all the player history will be stored
players = new BSBdatab<>(addon, PlayerData.class);
players = new BSBDatabase<>(addon, PlayerData.class);
// Cache of challenges
challengeMap = new LinkedHashMap<>();
// Start panels

View File

@ -87,6 +87,7 @@ public class ChallengesPanels {
.icon(challenge.getIcon())
.name(challenge.getFriendlyName().isEmpty() ? challenge.getUniqueId() : challenge.getFriendlyName())
.description(challenge.getDescription())
// TODO Complete the description
.glow(completed)
.clickHandler((player,c) -> {
if (!challenge.getChallengeType().equals(ChallengeType.ICON)) {