From f0ed27ad636a94da080eb888224b5bcf6fad8227 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 27 Feb 2012 16:31:52 +0100 Subject: [PATCH] Fixed CraftOfflinePlayer.getLastPlayed() returning the wrong result. Addresses BUKKIT-847 By: Olof Larsson --- .../main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java index 5772e4a23b..12b173d1ce 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java +++ b/paper-server/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();