Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final URLConnection connection = new URL(Settings.API_URL + "?user=" + uuid.toString().replace("-", "")).openConnection();
- connection.addRequestProperty("User-Agent", "Mozilla/4.0");
- final JSONTokener tokener = new JSONTokener(connection.getInputStream());
- final JSONObject root = new JSONObject(tokener);
- return root.getJSONObject(uuid.toString().replace("-", "")).getString("username");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement