Skip to content

Blacklist

tom2208 edited this page Jul 6, 2022 · 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.

The autorefill blacklist defines items that get ignored by autorefill. Some people don't like shulkerboxes to be refilled, you could set that onto this blacklist.

Commands

Command Explanation Permission
/blacklist <blacklist> add Adds the material of the item you are holding in your main hand to the specified blacklist. chestcleaner.cmd.admin.blacklist
/blacklist <blacklist> add <materialId> Adds the specified material to the specified blacklist. chestcleaner.cmd.admin.blacklist
/blacklist <blacklist> remove Removes the material of the item you are holding in your main hand from the specified blacklist. chestcleaner.cmd.admin.blacklist
/blacklist <blacklist> remove <materialId> Removes the material of the item you are holding in your main hand from the specified blacklist. chestcleaner.cmd.admin.blacklist
/blacklist <blacklist> list Prints out the specified blacklist. chestcleaner.cmd.admin.blacklist
/blacklist <blacklist> clear Removes every entry of the specified blacklist. chestcleaner.cmd.admin.blacklist

Permissions

Permission Explanation
chestcleaner.cmd.admin.blacklist Allows the player to use all blacklist commands

Config

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