Don't Pick Up Documentation

Don't Pick Up

Allows players to specify a blacklist of materials they wish to not pick up. Keeps inventories clean while mining and farming — blacklisted drops are simply left on the ground.

Download Don't Pick Up on SpigotMC

Installation

  1. Add the Don't Pick Up jar into your plugins folder.
  2. Restart your server.
  3. Players have access to the /dpu command by default.

Commands

  • /dpu help — Shows the help message.
  • /dpu add — Disables picking up the item in your hand.
  • /dpu add [material] — Disables picking up the specified material.
  • /dpu remove — Enables picking up the item in your hand.
  • /dpu remove [material] — Enables picking up the specified material.
  • /dpu remove all — Enables picking up all items.
  • /dpu list — Lists all the items you are not currently picking up.
  • /dpu reload — Reloads the config (requires dontpickup.reload, op by default).

Permissions

  • dpu.use (default) — Allows the use of the Don't Pick Up command.
  • dontpickup.reload (op) — Allows the use of the reload subcommand.

Developer API

Other plugins can check whether a player is willing to pick up a material:

  1. Build and install Don't Pick Up into your local Maven repository: mvn clean install.
  2. Add a provided scope dependency on com.thefishnextdoor:DontPickUp:1.4.0 (there is no public Maven repository for it).
  3. Call fun.sunrisemc.dontpickup.api.DontPickUpApi.canPickup(player, material) while Don't Pick Up is enabled.
if (DontPickUpApi.canPickup(player, Material.COBBLESTONE)) {
    player.getInventory().addItem(new ItemStack(Material.COBBLESTONE));
}

Plugins that grant items indirectly should honour this check so a player's blacklist is respected everywhere. Fish's Custom Enchantments does this for its Telekinesis enchantment.