Removed functions for getting the PlayerProfile - using API classes is

preferred, but if not the McMMOPlayer should be used instead
This commit is contained in:
GJ
2013-03-18 11:34:11 -04:00
parent 5453b0511d
commit d004361836
3 changed files with 1 additions and 64 deletions

View File

@ -10,7 +10,6 @@ import org.bukkit.entity.Player;
import com.gmail.nossr50.mcMMO;
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
import com.gmail.nossr50.datatypes.player.PlayerProfile;
public final class UserManager {
private static Map<String, McMMOPlayer> players = new HashMap<String, McMMOPlayer>();
@ -81,30 +80,6 @@ public final class UserManager {
return players;
}
/**
* Get the profile of a player.
*
* @param player The player whose profile to retrieve
* @return the player's profile
*/
@Deprecated
public static PlayerProfile getProfile(OfflinePlayer player) {
return getProfile(player.getName());
}
/**
* Get the profile of a player by name.
*
* @param playerName The name of the player whose profile to retrieve
* @return the player's profile
*/
@Deprecated
public static PlayerProfile getProfile(String playerName) {
McMMOPlayer mcmmoPlayer = players.get(playerName);
return (mcmmoPlayer != null) ? mcmmoPlayer.getProfile() : null;
}
/**
* Get the McMMOPlayer of a player by name.
*