diff --git a/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java b/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java index 3b5ab228f..92f3814c1 100644 --- a/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java @@ -157,8 +157,8 @@ public class PlayersManager { if (playerUUID == null) { return ""; } - return names.loadObjects().stream().filter(n -> n.getUuid().equals(playerUUID)).findFirst() - .map(Names::getUniqueId).orElse(""); + getPlayer(playerUUID); + return playerCache.get(playerUUID).getPlayerName(); } /**