From d91e33e789be603bbeca3f29422fd685bdf38669 Mon Sep 17 00:00:00 2001 From: TechnicJelle <22576047+TechnicJelle@users.noreply.github.com> Date: Sat, 17 Feb 2024 01:50:10 +0100 Subject: [PATCH] Disable another debug log --- .../bluemapofflineplayermarkers/common/Server.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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();