diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 2476be75..8bd1ab11 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -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() + '}'; |