@Override
    public boolean onCommand(CommandSender sender, Command command,
                             String label, String[] args) {

        if (!(sender instanceof Player)) {
            sender.sendMessage(ChatColor.RED
                    + "Must execute this command as a player.");
            return false;
        }
        if (!label.equalsIgnoreCase("aieclear")) return false;
        Player player = (Player) sender;
        if ((!player.hasPermission("AIE.clear")) && (!player.isOp())) {
            player.sendMessage(player.getDisplayName() + ChatColor.YELLOW
                    + " lacks \"AIE.clear\" permission.");
            return false;
        }
        if (player.getItemInHand().getItemMeta() == null) {
            player.sendMessage(ChatColor.RED
                    + "You must be holding an item!");
            return false;
        }

        ItemStack item = player.getItemInHand();
        ItemMeta itemMeta = item.getItemMeta();
        List<String> lore = itemMeta.getLore();

        if (lore != null && (lore.contains(ChatColor.GOLD + "Effects:"))) {

            for (int x = lore.size() - 1; x >= effects
                    .listContains(lore, "Effects:") && x > -1; x--) {
                lore.remove(x);
            }

            itemMeta.setLore(lore);
            item.setItemMeta(itemMeta);
            player.sendMessage(ChatColor.AQUA
                    + "All effects have been removed.");
            effects.removeAllBoundEffects(player);
            effects.addItemEffects(player, true, true, false);
            return true;

        } else {
            player.sendMessage(ChatColor.RED
                    + "There are no effects to remove.");
            return false;
        }
    }