mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Improve error message for missing username
This commit is contained in:
1 file changed
+1
-1
@@ -419,7 +419,7 @@ public class CarbonPlayerCommon implements CarbonPlayer, ForwardingAudience.Sing
|
|||||||
if (this.username == null) {
|
if (this.username == null) {
|
||||||
this.username = Objects.requireNonNull(
|
this.username = Objects.requireNonNull(
|
||||||
this.profileResolver.resolveName(this.uuid).join(),
|
this.profileResolver.resolveName(this.uuid).join(),
|
||||||
"name"
|
() -> "Failed to resolve username for player with UUID " + this.uuid + " (null result)"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user