Skip to content

Blacklist

tom2208 edited this page Oct 11, 2020 · 4 revisions

Description

There are two types of blacklists: stacking and inventory.

Both blacklists contain item names and are configured the same way, however they have different meanings.

The stacking blacklist defines items which will not get stacked together if they get sorted. For instance, usually a 32 dirt stack and a 21 dirt stack would get stacked together to a 53 dirt stack. With dirt on the stacking blacklist you preserve the two original stacks.

The inventory blacklist defines blocks that get ignored if you want to try sorting an inventory of a block (only works for "openEvent = false" mode). For instance, if you don't want your player to sort hoppers, then you add hopper to the inventory blacklist.

Commands

  • /blacklist <stacking/inventory/autorefill> list
    • get the currently configured blacklist of the server. Supports paging, simply add a page number at the end of the command to view that page.
  • /blacklist <stacking/inventory/autorefill> clear
    • removes all items from the respective blacklist
  • /blacklist <stacking/inventory/autorefill> add
    • add the item in hand to the respective blacklist.
  • /blacklist <stacking/inventory/autorefill> add <item>
    • add the item to the respective blacklist
  • /blacklist <stacking/inventory/autorefill> remove <item/index>
    • remove the item from the respective blacklist. You can also enter a number, the index, which you get from the list command.

Permissions

  • chestcleaner.cmd.admin.blacklist
    • allow player to change all blacklists for the server.

Config

  • the blacklists are saved/configured in config.yml
blacklist:
  stacking:
    - air
    - bed
  inventory:
    - furnace
  autorefill:
    - stone