From adb16d8c8d85d615377bdd0fc7cbd52a0a6df9ac Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sat, 2 Jul 2016 17:38:56 -0400 Subject: [PATCH] Add Mojang api debug --- src/main/java/net/frozenorb/apiv3/util/MojangUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/frozenorb/apiv3/util/MojangUtils.java b/src/main/java/net/frozenorb/apiv3/util/MojangUtils.java index 57d5b39..04cf458 100644 --- a/src/main/java/net/frozenorb/apiv3/util/MojangUtils.java +++ b/src/main/java/net/frozenorb/apiv3/util/MojangUtils.java @@ -6,17 +6,20 @@ import io.vertx.core.http.HttpClientOptions; import io.vertx.core.json.DecodeException; import io.vertx.core.json.JsonObject; import lombok.experimental.UtilityClass; +import lombok.extern.slf4j.Slf4j; import net.frozenorb.apiv3.APIv3; import java.io.IOException; import java.util.UUID; +@Slf4j @UtilityClass public class MojangUtils { private static final HttpClient httpsClient = APIv3.getVertxInstance().createHttpClient(new HttpClientOptions().setSsl(true).setTrustAll(true)); public static void getName(UUID id, SingleResultCallback callback) { + log.error("Getting name for " + id + "..."); httpsClient.get(443, "sessionserver.mojang.com", "/session/minecraft/profile/" + id.toString().replace("-", ""), (response) -> { response.bodyHandler((body) -> { try {