Menu Item Desync (Ghost Item Fix): Resolved an issue where players could temporarily "grab" menu items due to client-side lag. Inventory synchronization is now forced after every click to prevent ghost items.
Enhanced Boss Protection: Added 4 new protection layers for MythicMobs and EliteMobs. Entities that are in combat, leashed, or within their initial "grace period" are now strictly exempted from hibernation.
Reliable Wake-up System (Thaw Process): Fixed a critical bug where mob AI wouldn't restart after TPS recovered. Entities are now properly and gradually "thawed" back to their active state.
Dynamic Status Re-check: The system now re-scans entities mid-cycle. If an entity is assigned a Boss tag or name during optimization, it is immediately protected and unfrozen.
GUI Exploits Fixed: Resolved an issue where players could steal items from menus using Drag or Shift-Click. Inventory security has been hardened to prevent any item loss or duplication from GUIs.
Full Shulker Farm Protection: Projectiles (Shulker bullets) and dropped shells are now fully protected. Shulker farms will no longer break as these entities are now exempted from all optimization sweeps.
GUI Exploits Fixed: Resolved an issue where players could steal items from menus using Drag or Shift-Click. Inventory security has been hardened to prevent any item loss or duplication from GUIs.
Performance & Visual Improvements
- Full Farm Capacity: Mobs in vertical farms (high towers or deep pits) will no longer freeze. Your farms stay 100% efficient regardless of your Y-level.
- Seamless Visibility: Fixed the issue where entities would flicker or disappear when players move up or down. Visuals are now perfectly smooth.
- Lower Latency, Higher Performance: Stability is guaranteed in all directions, even with aggressive performance settings.
Intelligent Entity Protection (New!)
- Valuable Entity Safety: The system now identifies "special" mobs. Entities with Diamond gear or custom items are automatically protected from being frozen or removed.
- Plugin Compatibility: Built-in support for MythicMobs, Citizens (NPC), and Shopkeepers. Your custom entities are safe.
- Safe Anti-Lag Clearing: Bosses and special mobs are strictly exempted during emergency lag clearing. Only the "trash" is removed.
Stability Updates
- Visual Consistency: Special entities stay rendered even at long distances for a better player experience.
- Optimized Core: Internal processing is further simplified to reduce CPU usage even more.
- Smart Comment Mapping: Fixed logic where comments were assigned to the wrong settings when keys shared similar names.
- Null Safety: Added protection against empty or corrupted configuration files to prevent system crashes on startup.
- Enhanced Logging: Improved error reporting to provide full technical details in the console for faster troubleshooting.
- Language File Fix: Cleaned up broken characters and formatting errors in the Spanish translation file.
Core Improvements
- Ultra-Lightweight Build: Reduced file size from 13.4MB to ~227KB (98% reduction) for faster loading and minimal storage impact.
- Paper Library Loader: Migrated to modern dependency management. Heavy libraries (SQLite, HikariCP) are now dynamically downloaded at runtime instead of being bloated inside the JAR.
- Conflict Prevention: Removed shaded libraries to eliminate JVM class conflicts and reduce overhead.
- Modern API Support: Fully transitioned to the paper-plugin.yml system for native 1.20+ compatibility.
New Features & Improvements
- DeepAnalysisGUI: New panel added to detail plugin CPU usage. Lists the top 21 most demanding methods with precise sample data.
- AI Hibernation: Freezes AI for entities far from players or in enclosures. Features an automatic "wake-up" system upon interaction.
- Villager Management: Added a 10-minute automated wake-up cycle for Villagers to ensure trade restocks while maintaining high performance.
- Collision Matrix Throttling: Disables physics calculations in overcrowded blocks, converting heavy $n^2$ calculations into linear reads.
- Packet Culling: Filters network packets for entities outside the player's view distance to stabilize ping and save bandwidth.
- Predictive Lag Spawning: Proactively blocks new mob/item spawns in over-capacity areas before lag occurs.
- Data Recording: Lag snapshots are now processed in the background, ensuring no extra strain during server spikes.
Optimization
- CPU Optimization: Scoreboard scanning logic redesigned; processing time reduced to nanoseconds to prevent TPS loss.
- Memory Optimization: Chunk system overhauled; fixed memory leaks and prevented RAM bloating from unloaded data.
- Hopper Performance: Minimized CPU and memory footprint in areas with high hopper density.
- Stuttering Reduction: Sampling intervals optimized to eliminate micro-stutters and "Safepoint" pauses.
Bug Fixes & Security
- Crash Protection: Resolved crashes caused by accessing unloaded chunks; added isLoaded and null safety checks.
- Code Cleanup: Removed unused imports and fixed type-safety (lint) vulnerabilities for maximum stability.
- Smart Tracking: Prevented unnecessary optimization triggers.
- Discord Notifications: Removed empty messages when no action is taken.
- History Tab: Fixed incorrect data display for processed actions.
- Console Logging: Added detailed data for intervention reasons.
- Tab-Completion: Players now only see commands they have permission to use.
- Staff Permissions: Added a separate permission for moderators to monitor system status.
- Security Settings: New configuration options added to hide unauthorized commands.
