AntiDelete - Item Protection Plugin
Description
AntiDelete is a lightweight, configuration-driven plugin that prevents players from dropping or trading specific vanilla Minecraft items. This is perfect for protecting valuable items like diamond/netherite tools and armor in your server, ensuring they stay in players' inventories while still allowing free movement within their own inventory space.
Features
- ️ Item Protection: Prevent dropping of configured vanilla items
- Anti-Trade: Block transferring protected items to external inventories (chests, other players, etc.)
- Inventory Movement: Allow free movement of protected items within player's inventory
- ⚙️ Easy Configuration: Simple YAML configuration with vanilla material names
- Death Protection: Protected items are removed from death drops to prevent loss
- Lightweight: Minimal performance impact, no dependencies required
Installation
- Download the AntiDelete.jar file
- Place it in your server's plugins/ folder
- Restart your server
- Configure the protected items in plugins/AntiDelete/config.yml
- Reload or restart the server
Configuration
Edit plugins/AntiDelete/config.yml:
```
# AntiDelete Plugin Configuration
# Liste des items vanilla qui ne peuvent pas être jetés ou échangés
# Format: material_name (nom exact du Material de Bukkit)
undroppable_items:
- DIAMOND_SWORD
- DIAMOND_PICKAXE
- DIAMOND_AXE
- DIAMOND_SHOVEL
- DIAMOND_HOE
- NETHERITE_SWORD
- NETHERITE_PICKAXE
- NETHERITE_AXE
- NETHERITE_SHOVEL
- NETHERITE_HOE
- DIAMOND_HELMET
- DIAMOND_CHESTPLATE
- DIAMOND_LEGGINGS
- DIAMOND_BOOTS
- NETHERITE_HELMET
- NETHERITE_CHESTPLATE
- NETHERITE_LEGGINGS
- NETHERITE_BOOTS
How It Works
- Dropping Prevention: When a player tries to drop a protected item (Q key), the action is cancelled
- Inventory Click Protection: Prevents moving protected items to external inventories (chests, furnaces, etc.)
- Drag Protection: Blocks dragging protected items into external inventory slots
- Death Protection: Protected items are removed from death drops, keeping them in the player's inventory
- Free Movement: Players can still move protected items freely within their own inventory
Use Cases
- Skyblock Servers: Protect valuable tools and armor from accidental loss
- Survival Servers: Keep important items safe during PvP or exploration
- Roleplay Servers: Prevent trading of special items
- Prison Servers: Protect earned tools from being stolen
Support
For support or feature requests, please visit the resource discussion page.
Note: This plugin only works with vanilla Minecraft items. For custom items, consider using plugins like Oraxen with custom item support.