mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 11:44:42 +02:00
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:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user