    public boolean wearingSet(final LivingEntity entity)
    {
        ItemStack his = entity.getEquipment().getHelmet();
        ItemStack cis = entity.getEquipment().getChestplate();
        ItemStack lis = entity.getEquipment().getLeggings();
        ItemStack bis = entity.getEquipment().getBoots();
        if ((his == null) || (cis == null) || (lis == null) || (bis == null))
            return false;
        Set<ItemStack> sis = new HashSet<ItemStack>();
        sis.add(cis);
        sis.add(lis);
        sis.add(bis);
        ItemMeta meta = his.getItemMeta();
        String[] ss = ChatColor.stripColor(meta.getDisplayName()).split(" ");
        String potentialSet = ss[0];
        for (ItemStack is : sis)
        {
            ItemMeta ism = is.getItemMeta();
            String[] splits = ChatColor.stripColor(ism.getDisplayName()).split(" ");
            if (!splits[0].equalsIgnoreCase(potentialSet))
                return false;
        }
        return true;
    }

    public boolean wearingSet(final LivingEntity entity)
    {
        ItemStack his = entity.getEquipment().getHelmet();
        ItemStack cis = entity.getEquipment().getChestplate();
        ItemStack lis = entity.getEquipment().getLeggings();
        ItemStack bis = entity.getEquipment().getBoots();
        if ((his == null) || (cis == null) || (lis == null) || (bis == null))
            return false;
        Set<ItemStack> sis = new HashSet<ItemStack>();
        sis.add(cis);
        sis.add(lis);
        sis.add(bis);
        ItemMeta meta = his.getItemMeta();
        String[] ss = ChatColor.stripColor(meta.getDisplayName()).split(" ");
        String potentialSet = ss[0];
        for (ItemStack is : sis)
        {
            ItemMeta ism = is.getItemMeta();
            if(ism.getDisplayName()!=null){
            	String[] splits = ChatColor.stripColor(ism.getDisplayName()).split(" ");
            	if (!splits[0].equalsIgnoreCase(potentialSet))
            		return false;
            }
        }
        return true;
    }
