Also use getServer() here as well

This commit is contained in:
TfT_02 2013-10-18 15:14:10 +02:00
parent a774733af4
commit 3b09012b35

View File

@ -15,7 +15,6 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;
import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.mcMMO;
@ -125,7 +124,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
catch (NumberFormatException e) { catch (NumberFormatException e) {
} }
if (lastPlayed == 0) { if (lastPlayed == 0) {
OfflinePlayer player = Bukkit.getOfflinePlayer(name); OfflinePlayer player = mcMMO.p.getServer().getOfflinePlayer(name);
lastPlayed = player.getLastPlayed(); lastPlayed = player.getLastPlayed();
rewrite = true; rewrite = true;
} }