summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorOlof Larsson <olof@sylt.nu>2012-02-27 16:31:52 +0100
committerEvilSeph <evilseph@gmail.com>2012-02-27 20:16:11 -0500
commitf70f99d1a0e97900b82183bba07a22f3e083f6eb (patch)
tree61fcfe6eb82de7cebe728067028ff4c0082626b7 /src/main
parent397f25aa247cafd7f5cd20ba50323babc6afaf33 (diff)
downloadcraftbukkit-f70f99d1a0e97900b82183bba07a22f3e083f6eb.tar
craftbukkit-f70f99d1a0e97900b82183bba07a22f3e083f6eb.tar.gz
craftbukkit-f70f99d1a0e97900b82183bba07a22f3e083f6eb.tar.lz
craftbukkit-f70f99d1a0e97900b82183bba07a22f3e083f6eb.tar.xz
craftbukkit-f70f99d1a0e97900b82183bba07a22f3e083f6eb.zip
Fixed CraftOfflinePlayer.getLastPlayed() returning the wrong result. Addresses BUKKIT-847
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java b/src/main/java/org/bukkit/craftbukkit/CraftOfflinePlayer.java
index 5772e4a2..12b173d1 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();