Use profile instead of mcMMOPlayer

This commit is contained in:
GJ 2013-07-11 13:19:04 -04:00
parent 6fe1c85592
commit 621969459a
2 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,7 @@ public class SaveTimerTask extends BukkitRunnable {
int count = 1;
for (McMMOPlayer mcMMOPlayer : UserManager.getPlayers().values()) {
new PlayerProfileSaveTask(mcMMOPlayer).runTaskLater(mcMMO.p, count);
new PlayerProfileSaveTask(mcMMOPlayer.getProfile()).runTaskLater(mcMMO.p, count);
count++;
}

View File

@ -2,14 +2,13 @@ package com.gmail.nossr50.runnables.player;
import org.bukkit.scheduler.BukkitRunnable;
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
import com.gmail.nossr50.datatypes.player.PlayerProfile;
public class PlayerProfileSaveTask extends BukkitRunnable {
private PlayerProfile playerProfile;
public PlayerProfileSaveTask(McMMOPlayer mcMMOPlayer) {
this.playerProfile = mcMMOPlayer.getProfile();
public PlayerProfileSaveTask(PlayerProfile playerProfile) {
this.playerProfile = playerProfile;
}
@Override