Check visibility before range

This commit is contained in:
TfT_02 2013-06-02 22:31:54 +02:00 committed by GJ
parent effe5ec305
commit 86db4251a2

View File

@ -69,11 +69,11 @@ public class InspectCommand implements TabExecutor {
else {
Player target = mcMMOPlayer.getPlayer();
if (CommandUtils.tooFar(sender, target, Permissions.inspectFar(sender))) {
if (CommandUtils.hidden(sender, target, Permissions.inspectHidden(sender))) {
return true;
}
if (CommandUtils.hidden(sender, target, Permissions.inspectHidden(sender))) {
if (CommandUtils.tooFar(sender, target, Permissions.inspectFar(sender))) {
return true;
}