Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blocking items by display name #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

addstar
Copy link

@addstar addstar commented Apr 28, 2022

This adds functionality to allow blocking items by display name. It checks against the exact display name and doesn't take colours into consideration, so names need to include colours. Not sure if you would prefer it to work a little different, it's a fairly simple change. I tried to make minimal changes, hopefully this is ok.

An example of a working config:

itemBlocking {
    enabled=true

    # Material list for blocked items (does not support ID's), only effective if the feature is enabled.
    # If you don't know material names: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
    list=[]

    # Exact item names for blocked items, only effective if the feature is enabled.
    # Useful for blocking custom items based on item name.
    names=[
        "§eSmall Backpack",
        "§eMedium Backpack",
        "§eLarge Backpack"
    ]

    ....

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants