mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Redundant redundancy :D
This commit is contained in:
parent
80c36ca846
commit
b2565bedd3
@ -47,8 +47,7 @@ public class InspectCommand implements CommandExecutor {
|
|||||||
PlayerProfile PPt = Users.getProfile(target);
|
PlayerProfile PPt = Users.getProfile(target);
|
||||||
|
|
||||||
//If they are not an Op they have to be close
|
//If they are not an Op they have to be close
|
||||||
if(sender instanceof Player && !player.getWorld().equals(target.getWorld()) ||
|
if(sender instanceof Player && !player.isOp() && !m.isNear(player.getLocation(), target.getLocation(), 5.0))
|
||||||
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.
|
sender.sendMessage("You are too far away to inspect that player!"); //TODO: Needs more locale.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user