Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
DropItemControl
A Minecraft plugin that allows players to lock items to prevent accidental dropping or placing into containers—ideal for protecting special tools.
Features
- Item Locking: Prevents dropping or placing items into containers
- Comprehensive Protection: Blocks placing into grindstone, enchantment table, anvil, smithing table, and villager trading
- Multiple Lock Modes:
- Lock individual items
- Lock by item type (all items of the same type)
- Lock all items in the inventory
- Flexible Management:
- Limit the number of items each player can lock
- LuckPerms support for setting different limits for different player groups
- User-Friendly:
- Smart command suggestions (tab completion)
- Clear, color-coded notifications
- Highly Customizable:
- Player data stored in individual files
- Customizable messages and item lore
- Enable/disable the plugin with a command
Commands
All commands use the /dic
prefix for consistency and easy access:
Main Command
/dic help
- Display command help
Lock Items
/dic lock
- Lock the item in your hand/dic lock type
- Lock all items of the same type/dic lock all
- Lock all items in your inventory
Unlock Items
/dic unlock
- Unlock the item in your hand/dic unlock type
- Unlock all items of the same type/dic unlock all
- Unlock all items in your inventory
Management
/dic list
- View information about locked items/dic toggle
- Enable/disable the plugin (admin only)/dic on
- Enable the plugin (admin only)/dic off
- Disable the plugin and remove lock lore (admin only)
Note: Legacy commands (
/lockitem
,/unlockitem
, etc.) are still supported for backward compatibility.
Permissions
dropitemcontrol.lock
- Allow item lockingdropitemcontrol.unlock
- Allow item unlockingdropitemcontrol.list
- Allow viewing the locked items listdropitemcontrol.admin
- Admin rights for plugin controldropitemcontrol.limit.<number>
- Set the maximum number of items a player can lock
Installation
- Download the JAR file from Releases or build from source
- Place the JAR file into the server’s
plugins
folder - Restart the server
Requirements
- Minecraft 1.21+
- Paper or compatible forks
- Java 21+
Configuration
You can customize settings in the config.yml
file:
# Maximum number of locked items per player
max-locked-items: 5
# Messages
messages:
prefix: "&8[&bDropItemControl&8] &7"
item-locked: "&aItem &f%item% &ahas been locked in your hand!"
# ...
# Other settings
settings:
# Show lore on locked items
show-lock-lore: true
# Lore displayed on locked items
lock-lore: "&c&lLocked - Cannot be dropped"
# Allow lock by item type
lock-by-item-type: true
# Count each item type as one lock slot
count-by-item-type: true
Support
Need help or have questions? Join our Discord server:
https://discord.gg/4PaYftZwu3
Pinned Versions
Pages
Members
Owner