diff --git a/src/main/java/com/technicjelle/bluemapofflineplayermarkers/common/Server.java b/src/main/java/com/technicjelle/bluemapofflineplayermarkers/common/Server.java index 8f080fe..2bd98e8 100644 --- a/src/main/java/com/technicjelle/bluemapofflineplayermarkers/common/Server.java +++ b/src/main/java/com/technicjelle/bluemapofflineplayermarkers/common/Server.java @@ -74,11 +74,8 @@ default void shutDown() { */ static String nameFromMojangAPI(UUID playerUUID) throws IOException { String name = _cachedPlayerNames.get(playerUUID); - if (name != null) { - Singletons.getLogger().info("Requested player name from Mojang API, but returning from cache instead for " + playerUUID); - return name; - } - Singletons.getLogger().info("Requesting player name from Mojang API for " + playerUUID); + if (name != null) return name; + URL url = new URL("https://sessionserver.mojang.com/session/minecraft/profile/" + playerUUID); URLConnection request = url.openConnection(); request.connect();