mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 11:36:53 +01:00
Now loads player data from the database.
This commit is contained in:
parent
89220d67d3
commit
c1517d38b9
@ -320,6 +320,14 @@ public class ChallengesManager {
|
|||||||
addon.getLogger().info("Loading challenges...");
|
addon.getLogger().info("Loading challenges...");
|
||||||
chConfig.loadConfigObjects().forEach(this::storeChallenge);
|
chConfig.loadConfigObjects().forEach(this::storeChallenge);
|
||||||
sortChallenges();
|
sortChallenges();
|
||||||
|
players.loadObjects().forEach(pd -> {
|
||||||
|
try {
|
||||||
|
UUID uuid = UUID.fromString(pd.getUniqueId());
|
||||||
|
playerData.put(uuid,pd);
|
||||||
|
} catch (Exception e) {
|
||||||
|
addon.getLogger().severe("UUID for player in challenge data file is invalid!");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user