Double check the player is online closes #171

This commit is contained in:
HexedHero 2020-10-02 20:13:53 +01:00
parent 77ea222e1e
commit 4d31596c7e

View File

@ -495,6 +495,13 @@ public class PlayerData {
* initialized
*/
public static void load(Player player) {
/*
* Double check they are online, for some reason even if this is fired
* from the join event the player can be offline if they left in the same tick or something.
*/
if (!player.isOnline())
return;
MMOPlayerData mmoData = MMOPlayerData.get(player.getUniqueId());