From f70f99d1a0e97900b82183bba07a22f3e083f6eb Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Mon, 27 Feb 2012 16:31:52 +0100 Subject: [PATCH] Fixed CraftOfflinePlayer.getLastPlayed() returning the wrong result. Addresses BUKKIT-847 --- src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java b/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java index 5772e4a23b..12b173d1ce 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java @@ -167,7 +167,7 @@ public class CraftOfflinePlayer implements OfflinePlayer, ConfigurationSerializa public long getLastPlayed() { Player player = getPlayer(); - if (player != null) return player.getFirstPlayed(); + if (player != null) return player.getLastPlayed(); NBTTagCompound data = getBukkitData();