@Override public void doTick() { if (isTame) return; EntityHuman closest = getClosestPlayer(this.range); if (!hasTarget() && closest != null) { if (!PermissionManager.hasPermission( (Player) closest.getBukkitEntity(), "citizens.evils.immune")) { targetClosestPlayer(true, this.range); } } super.doTick(); }