Fix recursive method invocation (Related #27)

This commit is contained in:
games647
2016-06-20 15:27:43 +02:00
parent 1aba9a0f3b
commit bd3494eed0

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 getUUIDFromAPI(playerName);
return getUUIDFromJsonAPI(playerName);
}
} catch (IOException iOException) {
plugin.getLogger().log(Level.SEVERE, "Tried converting name->uuid from third-party api", iOException);