This should make it work properly

This commit is contained in:
TfT_02
2013-06-03 15:33:23 +02:00
committed by GJ
parent fc0c386ecb
commit de0487d16f
2 changed files with 7 additions and 6 deletions

View File

@ -56,8 +56,7 @@ public final class CommandUtils {
}
public static boolean hidden(CommandSender sender, Player target, boolean hasPermission) {
if (sender instanceof Player && ((Player)sender).canSee(target) && !hasPermission) {
sender.sendMessage(LocaleLoader.getString("Inspect.Offline"));
if (sender instanceof Player && !((Player)sender).canSee(target) && !hasPermission) {
return true;
}