mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Use username instead of display name in PlayerList#getPlayerStats
This commit is contained in:
parent
f97f51d382
commit
90ee0e7de2
1 changed files with 1 additions and 1 deletions
|
@ -1154,7 +1154,7 @@
|
|||
+ // CraftBukkit start
|
||||
+ public ServerStatsCounter getPlayerStats(ServerPlayer entityhuman) {
|
||||
+ ServerStatsCounter serverstatisticmanager = entityhuman.getStats();
|
||||
+ return serverstatisticmanager == null ? this.getPlayerStats(entityhuman.getUUID(), entityhuman.getDisplayName().getString()) : serverstatisticmanager;
|
||||
+ return serverstatisticmanager == null ? this.getPlayerStats(entityhuman.getUUID(), entityhuman.getGameProfile().getName()) : serverstatisticmanager; // Paper - use username and not display name
|
||||
+ }
|
||||
|
||||
+ public ServerStatsCounter getPlayerStats(UUID uuid, String displayName) {
|
||||
|
|
Loading…
Reference in a new issue