geforkt von Mirrors/Paper
Use username instead of display name in PlayerList#getPlayerStats
Dieser Commit ist enthalten in:
Ursprung
f97f51d382
Commit
90ee0e7de2
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren