AmethystDrill 1.1 - The Configuration & Shop-Fix Update
This is a major update that adds full configurability and, most importantly, fixes the critical bug where the drill would lose its abilities when used with shop plugins.
New Features
- Full config.yml Support
- The entire drill is now customizable! You no longer need to edit the code to change how the drill works.
- You can now configure:
- item.name: The display name (e.g., "&5Amethyst Drill").
- item.material: The base item (e.g., "NETHERITE_PICKAXE").
- item.lore: The item's description, with %current_uses%/%max_uses% placeholders.
- item.uses: The maximum number of uses.
- item.enchantments: A list of enchantments and their levels (e.g., "EFFICIENCY:5").
- particles.type: The particle used when mining (e.g., "PORTAL").
- particles.count: The number of particles to spawn.
- particles.enabled-by-default: Whether new players see particles.
- External Messages (messages.yml)
- All plugin messages (like "You have received an Amethyst Drill!") have been moved to messages.yml.
- This allows for easy translation and customization of all plugin text.
- Reload Command
- Added the /amethystpickaxe reload command (aliases: /ap reload, /drill reload).
- This command reloads both config.yml and messages.yml instantly, without needing a full server restart.
- Permission: amethystdrill.reload (default: op)
Bug Fixes & Improvements
- CRITICAL FIX: Shop Plugin Compatibility
- The Problem: When a drill was put on a shop (like EconomyShopGUI) and purchased, it would lose its 3x3 mining ability. This happened because the shop plugin creates a copy of the item and strips its hidden data (PDC tags).
- The Solution: The plugin now uses an "auto-repair" system. When a player breaks a block, the plugin checks the item's Display Name. If the name matches the drill's name in the config.yml (but the hidden data is missing), the plugin automatically re-applies the data on the spot. This makes the drill compatible with shop plugins.