mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-30 01:13:38 +01:00
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