From 86db4251a2986e92d0169e4bf5e5ccd6523e9685 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sun, 2 Jun 2013 22:31:54 +0200 Subject: [PATCH] Check visibility before range --- .../com/gmail/nossr50/commands/player/InspectCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java b/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java index ca4d93620..e1451f249 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java @@ -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; }