Add checks for loaded/unloaded profiles in commands

This commit is contained in:
TfT_02
2014-08-19 22:23:19 -06:00
parent 1503e58d11
commit a3943aab24
14 changed files with 83 additions and 1 deletions

View File

@ -34,6 +34,10 @@ public class InspectCommand implements TabExecutor {
if (mcMMOPlayer == null) {
PlayerProfile profile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false); // Temporary Profile
if (!CommandUtils.isLoaded(sender, profile)) {
return true;
}
if (CommandUtils.inspectOffline(sender, profile, Permissions.inspectOffline(sender))) {
return true;
}