command handler optimizations

This commit is contained in:
batchprogrammer314
2021-07-04 03:15:30 -05:00
parent e9aa334aee
commit 0f86796f96
6 changed files with 62 additions and 36 deletions

View File

@@ -23,7 +23,7 @@ public class MojangAPI {
return values;
}
// CATCHING NULLPOINTEREXCEPTION BAD!!!! eventually fix from the getAsJsonObject thingy
// CATCHING NULL ILLEGALSTATEEXCEPTION BAD!!!! eventually fix from the getAsJsonObject thingy
public static String[] pullFromAPI(String name) {
try {
String uuid = new JsonParser().parse(new InputStreamReader(new URL("https://api.mojang.com/users/profiles/minecraft/" + name)