1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-21 11:13:00 +01:00

Making Inspect work on offline players

This commit is contained in:
nossr50
2012-02-29 12:33:33 -08:00
parent e0fa23359f
commit 88e40080fb
6 changed files with 45 additions and 21 deletions

View File

@@ -71,7 +71,7 @@ public class Users {
public static void addUser(Player player)
{
if(!players.containsKey(player))
players.put(player, new PlayerProfile(player));
players.put(player, new PlayerProfile(player.getName()));
}
public static void clearUsers()
{
@@ -111,11 +111,15 @@ public class Users {
return players.get(player);
else
{
players.put(player, new PlayerProfile(player));
players.put(player, new PlayerProfile(player.getName()));
return players.get(player);
}
}
public static PlayerProfile getOfflineProfile(String playerName){
return new PlayerProfile(playerName);
}
public static Users getInstance() {
if (instance == null) {
instance = new Users();