📖
zAuctionHouse
DiscordGroupeZServeur Minecraft Vote
  • â„šī¸Informations
    • 🍾Getting started
    • 🔌Installing zAuctionHouse
    • ❓Why i need zMenu ?
  • Configurations
    • 🏤Official Configurations
    • Multi servers
    • 🚉Statistics
    • 📔Commands and Permissions
    • đŸĒ§PlaceHolders
    • âšī¸Buttons
    • 💲Economy
    • 🎊Convert
    • 🔍Search / Filter
    • Messages
    • 💱Prices
    • 👨‍đŸ’ŧWhitelist
    • 🛑Blacklist
    • 🚖Tax
    • Categories
    • 🇨đŸ‡ĩItem Translation
  • đŸ—ƒī¸Plugins files
    • Config.yml
    • 💲Economies.yml
    • Inventories
    • Patterns
    • Blacklist.yml
    • Prices.yml
    • Taxs.yml
    • Whitelist.yml
  • Development Portal
    • â„šī¸Informations
    • 🌆Events
    • đŸŦCustom storage
    • Filter
    • 🛑Blacklist
    • 💸Custom economy
  • 👴Old Configurations
    • Items
    • Buttons
    • Placeholder buttons
Powered by GitBook
On this page

Was this helpful?

  1. Development Portal

Blacklist

Blacklist your custom items

Create your own blacklist class implement from IBlacklist

public class BlacklistSimilar implements IBlacklist {

	private final List<ItemStack> itemstacks;

	/**
	 * @param itemstacks
	 */
	public BlacklistSimilar(List<ItemStack> itemstacks) {
		super();
		this.itemstacks = itemstacks;
	}

	@Override
	public String getName() {
		return "Similar itemstack";
	}

	@Override
	public boolean isBlacklist(ItemStack itemStack) {
		return this.itemstacks.stream()
				.anyMatch(stack -> stack != null && itemStack != null && stack.isSimilar(itemStack));
	}

}

After your need to use the method registerBlacklist in IBlacklistManager class

PreviousFilterNextCustom economy

Last updated 6 months ago

Was this helpful?

🛑