Added Player.get/setListName to change the name of the player on the player list.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-09-26 15:10:35 -07:00
parent b7fd3933e4
commit 9d39647939

View file

@ -124,6 +124,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
getHandle().displayName = name;
}
public String getListName() {
return getHandle().listName;
}
public void setListName(String name) {
server.getHandle().changeListName(getHandle(), name);
}
@Override
public String toString() {
return "CraftPlayer{" + "name=" + getName() + '}';