فهرست منبع

Redundant redundancy :D

nossr50 13 سال پیش
والد
کامیت
b2565bedd3
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java

+ 1 - 2
src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java

@@ -47,8 +47,7 @@ public class InspectCommand implements CommandExecutor {
             PlayerProfile PPt = Users.getProfile(target);
             
             //If they are not an Op they have to be close
-            if(sender instanceof Player && !player.getWorld().equals(target.getWorld()) || 
-                    sender instanceof Player && !player.isOp() && !m.isNear(player.getLocation(), target.getLocation(), 5.0))
+            if(sender instanceof Player && !player.isOp() && !m.isNear(player.getLocation(), target.getLocation(), 5.0))
             {
                 sender.sendMessage("You are too far away to inspect that player!"); //TODO: Needs more locale.
             }