Start changing PlayerProfile to use an OfflinePlayer

This commit is contained in:
GJ
2012-07-06 09:14:25 -04:00
parent 18aef9d526
commit bc6233541a
5 changed files with 30 additions and 23 deletions

View File

@ -8,6 +8,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import org.bukkit.GameMode;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
@ -63,9 +64,9 @@ public class PlayerProfile {
private String playerName;
private final static String location = mcMMO.usersFile;
public PlayerProfile(Player player, String playerName, boolean addNew) {
this.player = player;
this.playerName = playerName;
public PlayerProfile(OfflinePlayer offlinePlayer, boolean addNew) {
this.player = player.getPlayer();
this.playerName = player.getName();
party = PartyManager.getInstance().getPlayerParty(playerName);