I'm stupid (Related #27)
This commit is contained in:
1 parent
bd3494eed0
commit
22dcc50950
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user