use of com.elmakers.mine.bukkit.api.data.MageData in project MagicPlugin by elBukkit.
the class YamlMageDataStore method load.
@Override
public void load(String id, MageDataCallback callback) {
final File playerFile = new File(playerDataFolder, id + ".dat");
if (!playerFile.exists()) {
callback.run(null);
return;
}
YamlConfiguration saveFile = YamlConfiguration.loadConfiguration(playerFile);
MageData data = load(id, saveFile);
if (callback != null) {
callback.run(data);
}
}
Aggregations