# EnchantLimitRemover v2.2 - Major Stability Update 🚀
## 🔥 Critical Bug Fixes
- **FIXED:** Config enchantment level limits now work properly across all systems
- **FIXED:** Item-specific limits were being ignored in enchanting tables - now fully functional
- **FIXED:** Permission level checking was inefficient causing server lag - optimized with caching
- **FIXED:** Absolute maximum level security was being bypassed - now properly enforced
- **FIXED:** Configuration validation was incomplete - now comprehensive with auto-repair
- **FIXED:** Inconsistent limit calculation between commands and enchanting table - now unified
## ✨ Revolutionary Limit System
- **Layered Priority System:** Base Config → Permission Level → Item-Specific → Absolute Maximum
- **Smart Permission Caching:** Efficient permission checking with automatic cache management
- **Unified Calculation Engine:** Same limit logic applied everywhere for consistency
- **Security-First Design:** Absolute maximum level prevents dangerous enchantment levels
- **Real-Time Validation:** Live config validation with automatic error correction
## 🎯 Enhanced Enchantment Management
- **Multi-Layer Limit Control:** Configure limits at global, permission, and item-specific levels
- **Bypass System:** Admin permissions to override any restrictions
- **Dynamic Level Calculation:** Intelligent max level detection based on player permissions
- **Item-Aware Limits:** Different enchantment caps for different items (swords vs armor vs tools)
- **Disabled Enchantment Control:** Block specific enchantments with bypass permissions
## 🔧 Advanced Commands System
- `/elrenchant add <enchant> <level>` - Add enchantments with intelligent limit checking
- `/elrenchant remove <enchant>` - Remove specific enchantments safely
- `/elrenchant clear` - Remove ALL enchantments from items
- `/elrenchant info` - View detailed limits and current enchantments
- `/elrenchant list` - Browse all enchantments with your personal max levels
- `/elrenchant reload` - Hot-reload configuration without restart
- **Smart Tab Completion:** Context-aware suggestions based on your permissions
## ⚙️ Comprehensive Configuration System
```yaml
# Base enchantment level (minimum for all players)
max-enchant-level: 10
# Permission-based level system
use-permission-levels: true
# Item-specific enchantment limits
item-specific-limits:
enabled: true
items:
DIAMOND_SWORD:
sharpness: 10
looting: 5
unbreaking: 10
NETHERITE_PICKAXE:
efficiency: 15
fortune: 8
unbreaking: 15
# Security and safety
security:
absolute-max-level: 1000
log-activities: true
prevent-exploits: true
# Enhanced enchanting table behavior
enchanting-table:
fix-book-enchanting: true
consume-resources: true
enhanced-options: true
# Cooldown and economy integration
cooldowns:
enabled: false
duration: 60
economy:
enabled: false
cost-per-level: 100.0
```
## 🔒 Sophisticated Permission System
- `elr.admin` - Complete access to all plugin functionality
- `elr.use` - Basic enchantment table usage without vanilla limits
- `elr.level.X` - Tiered max levels (5, 10, 20, 50, 100, 255, 500, 1000)
- `elr.bypass.cooldown` - Skip command cooldowns
- `elr.bypass.disabled` - Use disabled enchantments
- `elr.bypass.limits` - Override all limits (uses absolute-max-level)
- **Permission Groups:** Pre-configured user, vip, moderator roles
## 💡 Intelligent Features
- **Dynamic Level Display:** Shows your personal max levels in `/elrenchant list`
- **Context-Aware Info:** `/elrenchant info` displays limits specific to held item
- **Smart Tab Completion:** Only suggests levels you can actually use
- **Automatic Config Repair:** Fixes invalid configurations on startup
- **Performance Optimization:** Cached permission checks for zero lag
## 🎨 User Experience Enhancements
- **Colorful Messages:** Beautiful, consistent formatting with customizable text
- **Detailed Feedback:** Clear explanations when limits are reached
- **Debug System:** Comprehensive logging for troubleshooting
- **Multi-Format Support:** Works with Enchanted Books and regular items
- **Activity Logging:** Optional detailed logging for server monitoring
## 🔧 Technical Improvements
- **Unified Limit Engine:** Single calculation system used everywhere
- **Memory Optimization:** Efficient caching with automatic cleanup
- **Error Recovery:** Graceful handling of configuration errors
- **Thread Safety:** Concurrent access protection for stability
- **Code Modernization:** Clean, maintainable codebase following best practices
## 📊 Advanced Monitoring & Debug
```yaml
# Debug mode for troubleshooting
debug: true
# Activity logging
security:
log-activities: true
# Performance monitoring
performance:
cache-checks: true
async-processing: false
```
**Debug Output Example:**
```
[DEBUG] Base max level from config: 10
[DEBUG] Applied permission level 50, new max: 50
[DEBUG] Applied item-specific limit for DIAMOND_SWORD.sharpness: 15, new max: 15
[DEBUG] Final max level for PlayerName: 15
```
## 🎯 Perfect For Server Administrators
- **Granular Control:** Configure different limits for different player groups
- **Security Focused:** Multiple layers of protection against exploits
- **Performance Optimized:** Minimal server impact with intelligent caching
- **Easy Management:** Hot-reload configs without server restart
- **Comprehensive Logging:** Track all enchantment activities
## 🌟 Quality Assurance Features
- **Input Validation:** Prevents invalid enchantments and levels
- **Config Verification:** Automatic validation and repair on startup
- **Permission Verification:** Validates permission nodes and structure
- **Material Validation:** Ensures item-specific configs use valid materials
- **Enchantment Validation:** Verifies all enchantment names are legitimate
## 📈 Compatibility & Support
- **API Version:** 1.21+ (fully compatible with latest Minecraft)
- **Permission Plugins:** LuckPerms, PermissionsEx, GroupManager
- **Economy Plugins:** Vault integration ready
- **Performance:** Optimized for large servers with hundreds of players
## 🙏 Community & Support
Having issues? Need help with configuration? Join our community for support and share your feedback to help make this plugin even better!
**Experience truly unlimited enchanting with professional-grade limit control!** ✨
---
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }