CraftersStaff v8.5.0 - Code Optimization & Translation Update
This update focuses on code quality, full translation support, and critical bug fixes to improve overall stability and user experience.
✨ New Features
Advanced Color System
- MiniMessage format support (
<red>, <gradient>)
- Hex colors (
&#RRGGBB)
- Legacy colors (
&a, &c)
- All messages support advanced formatting
Mining Alert System
- Configurable watched blocks list
- Threshold-based detection
- Discord webhook integration
- Staff notifications with
craftersstaff.alerts.view permission
TPS Monitoring
- Real-time server TPS tracking
- Automatic alerts when TPS drops below threshold
- Discord webhook notifications
- Compatible with both Spigot and Paper
Unified Alert System
- Centralized webhook configuration
- Active staff receive in-game alerts
- Fully customizable Discord embeds
- Complete messages section in config.yml
🐛 Bug Fixes
Flight System
- Fixed Staff Mode incorrectly leaving flight enabled
- Flight now properly disables when exiting Staff Mode
- Creative and Spectator modes correctly retain flight ability
Menu Translation Errors
- Fixed red error messages in player list menu
- Fixed missing translations in staff info menu
- ConfigManager now properly reloads language files
- Eliminated need for double server restart
Duplicate Messages
- Removed duplicate chat messages
- Cleaned up all hardcoded text strings
- All messages now use translation files
Item Duplication
- Fixed staff items duplicating in inventory
- Proper item management when toggling Staff Mode
TPS Calculation
- Reflection-based TPS retrieval for Spigot compatibility
- Fixed
Bukkit.getTPS() incompatibility
- Universal support for Spigot and Paper
🔧 Improvements
Complete Code Revision
- Full codebase scan and cleanup
- Removed duplicate code blocks
- Performance optimizations throughout
Translation System Overhaul
- All hardcoded messages replaced with translation keys
InvSeeCommand, StaffMenuListener, ChatListener fully translated
PlayerListener and StaffMenuBuilder support translations
- Complete Spanish and English support
Configuration Translation
- Complete
config.yml rewritten in English
- All comments and explanations translated
- Clearer structure and documentation
Menu Interface
- Staff list uses ✔ Green (Active) and ✘ Red (Disabled)
- Automatic prefix stripping from ranks
- Clean and professional appearance
Documentation
updates.yml updated with v8.5.0 changelog
- Complete history of changes documented
⚙️ Configuration Updates
New Alert Configuration
alerts:
mining:
watched-blocks: [DIAMOND_ORE, DEEPSLATE_DIAMOND_ORE, ANCIENT_DEBRIS]
threshold: 5
interval: 300
tps:
enabled: true
threshold: 18.0
check-interval: 60
discord:
webhook-url: "your-webhook-here"
messages:
mining-title: "Mining Alert"
tps-title: "TPS Warning"
📝 Technical Details
- ColorUtils implementation for advanced formatting
- Reflection-based TPS monitoring
- Smart language file reloading
- Optimized performance across all systems
Version: 8.5.0
Compatibility: Minecraft 1.21+ (Paper/Spigot)
Status: Stable Release
Languages: English, Spanish, Portuguese