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.

Permissions

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

Developer API

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

  1. Add the Don't Pick Up jar to your project as a provided scope dependency — there is no public Maven repository for it, so install the jar into your local repository or reference it as a system-scoped file.
  2. 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.