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
- Add the Don't Pick Up jar into your
pluginsfolder. - Restart your server.
- Players have access to the
/dpucommand 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:
- Add the Don't Pick Up jar to your project as a
providedscope 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. - 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.