summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2014-03-31 14:42:33 -0500
committerfeildmaster <admin@feildmaster.com>2014-03-31 14:42:33 -0500
commit434f15c847e43992cc1c2aa8feeefe283a6be8b6 (patch)
treed360575b81f87f887f9cf03783d476038723c76c /src/main
parent21e7ba8d221996f22e5d55ffb023b294a7c7bc0c (diff)
downloadcraftbukkit-434f15c847e43992cc1c2aa8feeefe283a6be8b6.tar
craftbukkit-434f15c847e43992cc1c2aa8feeefe283a6be8b6.tar.gz
craftbukkit-434f15c847e43992cc1c2aa8feeefe283a6be8b6.tar.lz
craftbukkit-434f15c847e43992cc1c2aa8feeefe283a6be8b6.tar.xz
craftbukkit-434f15c847e43992cc1c2aa8feeefe283a6be8b6.zip
Store last known player names in preparation for name changing
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java1
1 files changed, 1 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 da574e0b..4c193709 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -971,6 +971,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
data.setBoolean("keepLevel", handle.keepLevel);
data.setLong("firstPlayed", getFirstPlayed());
data.setLong("lastPlayed", System.currentTimeMillis());
+ data.setString("lastKnownName", handle.getName());
}
public boolean beginConversation(Conversation conversation) {