mirror of
https://github.com/PaperMC/Paper.git
synced 2025-11-08 10:56:44 +00:00
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Co-authored-by: Pedro <3602279+Doc94@users.noreply.github.com>
14 lines
513 B
Diff
14 lines
513 B
Diff
--- a/net/minecraft/server/players/NameAndId.java
|
|
+++ b/net/minecraft/server/players/NameAndId.java
|
|
@@ -49,4 +_,10 @@
|
|
UUID uuid = UUIDUtil.createOfflinePlayerUUID(name);
|
|
return new NameAndId(uuid, name);
|
|
}
|
|
+
|
|
+ // Paper start - utility method for common conversion back to the game profile
|
|
+ public GameProfile toUncompletedGameProfile() {
|
|
+ return new GameProfile(this.id, this.name);
|
|
+ }
|
|
+ // Paper end - utility method for common conversion back to the game profile
|
|
}
|