Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/toufoumaster/btwaila/util/UUIDHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ public class UUIDHelper {
}catch (Exception e) {
System.err.println("Can't connect to Mojang API.");
e.printStackTrace();
UUIDtoNameMap.put(uuid, null);
return null;
}
if(string.isEmpty()) {
System.err.println("UUID [" + uuid + "] doesn't exist!");
UUIDtoNameMap.put(uuid, null);
return null;
}
String username;
Expand All @@ -41,6 +43,7 @@ public class UUIDHelper {
username = contentParsed.getString("name");
}catch (Exception e) {
e.printStackTrace();
UUIDtoNameMap.put(uuid, null);
return null;
}

Expand Down