mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Store last known player names in preparation for name changing
This commit is contained in:
parent
21e7ba8d22
commit
434f15c847
1 changed files with 1 additions and 0 deletions
|
@ -971,6 +971,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
data.setBoolean("keepLevel", handle.keepLevel);
|
data.setBoolean("keepLevel", handle.keepLevel);
|
||||||
data.setLong("firstPlayed", getFirstPlayed());
|
data.setLong("firstPlayed", getFirstPlayed());
|
||||||
data.setLong("lastPlayed", System.currentTimeMillis());
|
data.setLong("lastPlayed", System.currentTimeMillis());
|
||||||
|
data.setString("lastKnownName", handle.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean beginConversation(Conversation conversation) {
|
public boolean beginConversation(Conversation conversation) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue