forked from Upstream/mmocore
Fixed yet another another ANOTHER Player must be online error
This commit is contained in:
parent
0396eaaef8
commit
59dd7ba4e1
@ -47,8 +47,12 @@ public abstract class PlayerDataManager {
|
||||
*/
|
||||
Bukkit.getScheduler().runTaskAsynchronously(MMOCore.plugin, () -> {
|
||||
PlayerData loaded = PlayerData.get(uuid);
|
||||
if(!loaded.isOnline()) return;
|
||||
loadData(loaded);
|
||||
Bukkit.getScheduler().runTask(MMOCore.plugin, () -> Bukkit.getPluginManager().callEvent(new PlayerDataLoadEvent(loaded)));
|
||||
Bukkit.getScheduler().runTask(MMOCore.plugin, () -> {
|
||||
if(loaded.isOnline())
|
||||
Bukkit.getPluginManager().callEvent(new PlayerDataLoadEvent(loaded));
|
||||
});
|
||||
loaded.getStats().updateStats();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user