Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more detailed error messages #1087

Merged
merged 2 commits into from
Dec 22, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Revert player name
  • Loading branch information
kevinthegreat1 committed Dec 21, 2024
commit 7af2198029b73877d4fc01c1cb489ab427c51b54
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ private CompletableFuture<Void> fetchPlayerData(String username) {
String stringifiedUuid = ApiUtils.name2Uuid(username);

if (stringifiedUuid.isEmpty()) {
this.playerName = "Player not found";
// "Player not found" doesn't fit on the screen lol
this.playerName = "User not found";
this.errorMessage = "Player UUID not found";
this.profileNotFound = true;
}
Expand Down Expand Up @@ -185,7 +186,8 @@ public boolean isInvisibleTo(PlayerEntity player) {
};
entity.setCustomNameVisible(false);
}).exceptionally(ex -> {
this.playerName = "Player not found";
// "Player not found" doesn't fit on the screen lol
this.playerName = "User not found";
this.errorMessage = "Player skin not found";
this.profileNotFound = true;
return null;
Expand Down
Loading