Inspect now checks if player exists in Database

This commit is contained in:
nossr50
2012-02-29 13:02:24 -08:00
parent 4641e4701c
commit 906bc01b91
3 changed files with 51 additions and 3 deletions

View File

@ -93,6 +93,15 @@ public class InspectCommand implements CommandExecutor {
}
PlayerProfile PPt = Users.getOfflineProfile(args[0]);
if(!PPt.isLoaded())
{
sender.sendMessage("Player does not exist in the database!");
return true;
}
System.out.println(PPt.isLoaded());
sender.sendMessage(ChatColor.GREEN + "mcMMO Stats for Offline Player " + ChatColor.YELLOW + args[0]);
sender.sendMessage(ChatColor.GOLD + "-=GATHERING SKILLS=-");