PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.34k stars 2.2k forks source link

Bukkit.getOfflinePlayer(uuid).getName() returns UUID instead of player name #10954

Open ImOlli opened 1 week ago

ImOlli commented 1 week ago

Expected behavior

The Method getName() of an offline player should return their name not the uuid

Observed/Actual behavior

The Method getName() returns the uuid as string

Steps/models to reproduce

Create a plugin that calls Bukkit.getOfflinePlayer(uuid).getName()

Plugin and Datapack List

Only the Plugin that calls Bukkit.getOfflinePlayer(uuid).getName()

Paper version

[13:25:23 INFO]: Checking version, please wait... [13:25:23 INFO]: This server is running Paper version 1.21-25-master@19105a9 (2024-06-21T19:03:48Z) (Implementing API version 1.21-R0.1-SNAPSHOT) You are running the latest version

Other

No response