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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user