diff --git a/src/main/java/world/bentobox/bentobox/listeners/JoinLeaveListener.java b/src/main/java/world/bentobox/bentobox/listeners/JoinLeaveListener.java index 2368b171f..78c1fddf7 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/JoinLeaveListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/JoinLeaveListener.java @@ -36,9 +36,9 @@ public class JoinLeaveListener implements Listener { return; } UUID playerUUID = user.getUniqueId(); + // Load player + players.addPlayer(playerUUID); if (plugin.getPlayers().isKnown(playerUUID)) { - // Load player - players.addPlayer(playerUUID); // Reset island resets if required plugin.getIWM().getOverWorlds().stream() .filter(w -> event.getPlayer().getLastPlayed() < plugin.getIWM().getResetEpoch(w)) diff --git a/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java b/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java index 99dd145fb..964342c41 100644 --- a/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java @@ -122,7 +122,7 @@ public class PlayersManager { * in the database too. * * @param uniqueID - unique ID - * @return true if player is know, otherwise false + * @return true if player is known, otherwise false */ public boolean isKnown(UUID uniqueID) { return uniqueID != null && (playerCache.containsKey(uniqueID) || handler.objectExists(uniqueID.toString()));