mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-01 01:23:25 +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, () -> {
|
Bukkit.getScheduler().runTaskAsynchronously(MMOCore.plugin, () -> {
|
||||||
PlayerData loaded = PlayerData.get(uuid);
|
PlayerData loaded = PlayerData.get(uuid);
|
||||||
|
if(!loaded.isOnline()) return;
|
||||||
loadData(loaded);
|
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();
|
loaded.getStats().updateStats();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user