public void onEntityTarget(EntityTargetEvent event) {
    if (event.isCancelled() && !(event.getTarget() instanceof Player)) return;

    if (event.getTarget() instanceof Player) {
      Player player = ((Player) event.getTarget());
      if ((AdminHandler.isGod(player.getName()) || AdminHandler.isInvisible(player.getName()))
          && AdminPermissions.has(player, Perms.NO_AGGRO)) event.setCancelled(true);
    }
  }