geforkt von Mirrors/Paper
Added Player.get/setListName to change the name of the player on the player list.
By: sk89q <the.sk89q@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
b7fd3933e4
Commit
9d39647939
@ -124,6 +124,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
getHandle().displayName = name;
|
getHandle().displayName = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getListName() {
|
||||||
|
return getHandle().listName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListName(String name) {
|
||||||
|
server.getHandle().changeListName(getHandle(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "CraftPlayer{" + "name=" + getName() + '}';
|
return "CraftPlayer{" + "name=" + getName() + '}';
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren