With zAuctionHouseV3 you can create your own filter for the /ah search command. First you need to read the Filter page which gives you all the information about how filters work.
Step 1
First you will need to retrieve the FilterManager class.
You need to create a class that will extend the Filter class.
packagefr.maxlego08.zauctionhouse.filter.filters;importorg.bukkit.ChatColor;importorg.bukkit.inventory.ItemStack;importorg.bukkit.inventory.meta.ItemMeta;importfr.maxlego08.zauctionhouse.api.AuctionItem;importfr.maxlego08.zauctionhouse.api.enums.FilterType;importfr.maxlego08.zauctionhouse.api.filter.Filter;publicclassNameFilterextendsFilter {publicNameFilter() { # Name of the filter that will be used in the command super("name"); } @Overridepublicbooleanperform(AuctionItem auctionItem,FilterType filterType,String string) { # We retrieve the list of items present in the auctionItem object.for (ItemStack itemStack :this.getItems(auctionItem)) {ItemMeta itemMeta =itemStack.getItemMeta();if (!itemMeta.hasDisplayName())continue;String name =ChatColor.stripColor(itemMeta.getDisplayName()); # We make a switch on the type of filterswitch (filterType) {case CONTAINS:returnname.toLowerCase().contains(string.toLowerCase());case EQUALS:returnname.equals(string);case EQUALSIGNORECASE:returnname.equalsIgnoreCase(string);default:break; } }returnfalse; }}