I'm stupid (Related #27)

This commit is contained in:
games647
2016-06-20 16:16:31 +02:00
parent bd3494eed0
commit 22dcc50950

View File

@ -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);