From 434f15c847e43992cc1c2aa8feeefe283a6be8b6 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 31 Mar 2014 14:42:33 -0500 Subject: [PATCH] Store last known player names in preparation for name changing --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index da574e0b7a..4c19370980 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) {