mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-27 12:45:25 +01:00
Load challenges on plugin reload
This commit is contained in:
parent
2892bd7192
commit
4f19d745a4
@ -31,6 +31,12 @@ public class PlayerManager {
|
||||
playersDirectory = new File(skyblock.getDataFolder(), "challenge-data");
|
||||
if (!playersDirectory.exists())
|
||||
playersDirectory.mkdirs();
|
||||
|
||||
Bukkit.getScheduler().runTask(skyblock, () -> {
|
||||
for(Player p : Bukkit.getServer().getOnlinePlayers()){
|
||||
loadPlayer(p.getUniqueId());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public HashMap<Challenge, Integer> getPlayer(UUID uuid) {
|
||||
|
Loading…
Reference in New Issue
Block a user