Improved command error handling - Added comprehensive exception handling for /pet commands with user-friendly messages
Added debug logging - Better troubleshooting capabilities for pet spawning/despawning issues
Issues Resolved:
Console spam from "Task #XXXXX generated an exception" and repeated death messages
Silent /pets command failures now show proper error messages
Pet behavior task cleanup errors and scheduler state validation issues
All "Missing translation: menu.pet_icon.*" errors in admin menus and tooltips
Pet System Stability:
Fixed entity death handling to prevent cleanup loops
Improved pet entity lifecycle management
Enhanced state consistency between active pet maps and entity tracking
Better handling of invalid/dead entities during behavior evaluation
⚡
Compatibility:
Paper/Spigot/Folia 1.16.5-1.21.5
No configuration changes required
Fully backward compatible with existing pet data
This stability-focused update resolves critical issues reported by server administrators and is highly recommended for all servers experiencing console spam, pet duplication, or menu translation errors.