Improve error message for missing username

This commit is contained in:
Jason Penilla committed 2024-02-15 12:06:42 -07:00
1 parent 4f216a8da1
commit f03469f564
1 file changed
+1 -1
@@ -419,7 +419,7 @@ public class CarbonPlayerCommon implements CarbonPlayer, ForwardingAudience.Sing
if (this.username == null) {
this.username = Objects.requireNonNull(
this.profileResolver.resolveName(this.uuid).join(),
"name"
() -> "Failed to resolve username for player with UUID " + this.uuid + " (null result)"
);
}