From 3b09012b35f36c5b984628d023448039dc6d0127 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Fri, 18 Oct 2013 15:14:10 +0200 Subject: [PATCH] Also use getServer() here as well --- .../com/gmail/nossr50/database/FlatfileDatabaseManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index 25867f5e2..d1ff02192 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -15,7 +15,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import org.bukkit.Bukkit; import org.bukkit.OfflinePlayer; import com.gmail.nossr50.mcMMO; @@ -125,7 +124,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager { catch (NumberFormatException e) { } if (lastPlayed == 0) { - OfflinePlayer player = Bukkit.getOfflinePlayer(name); + OfflinePlayer player = mcMMO.p.getServer().getOfflinePlayer(name); lastPlayed = player.getLastPlayed(); rewrite = true; }