mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
Correct the return value of getPlayerListName
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
7f39ea8c4c
commit
a621457aeb
@ -176,7 +176,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
@Override
|
||||
public String getPlayerListName() {
|
||||
return CraftChatMessage.fromComponent(getHandle().listName);
|
||||
return getHandle().listName == null ? getName() : CraftChatMessage.fromComponent(getHandle().listName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user