Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
Correct the return value of getPlayerListName
Dieser Commit ist enthalten in:
Ursprung
73f4bc3434
Commit
20207a0124
@ -176,7 +176,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPlayerListName() {
|
public String getPlayerListName() {
|
||||||
return CraftChatMessage.fromComponent(getHandle().listName);
|
return getHandle().listName == null ? getName() : CraftChatMessage.fromComponent(getHandle().listName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren