From 22dcc50950bc7230b48545804b02ee35e1119cd0 Mon Sep 17 00:00:00 2001 From: games647 Date: Mon, 20 Jun 2016 16:16:31 +0200 Subject: [PATCH] I'm stupid (Related #27) --- .../com/github/games647/fastlogin/core/MojangApiConnector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/github/games647/fastlogin/core/MojangApiConnector.java b/core/src/main/java/com/github/games647/fastlogin/core/MojangApiConnector.java index 6c58a99d..0f66f835 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/MojangApiConnector.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/MojangApiConnector.java @@ -121,7 +121,7 @@ public abstract class MojangApiConnector { BufferedReader reader = new BufferedReader(new InputStreamReader(httpConnection.getInputStream())); String line = reader.readLine(); if (line != null && !line.equals("null")) { - return getUUIDFromJsonAPI(playerName); + return getUUIDFromJsonAPI(line); } } catch (IOException iOException) { plugin.getLogger().log(Level.SEVERE, "Tried converting name->uuid from third-party api", iOException);