Hello everyone!
This update focuses on improving the user experience, adding highly requested features, and optimizing plugin performance to ensure it runs smoothly even on the most demanding servers.
New Features
Dynamic Language System:
You can now instantly switch the plugin language between Spanish and English! Simply use the command/pvpbarrier lang <es|en>.
Automatic Update Notifier:
The plugin will now asynchronously check (without causing any delay) for new versions available on SpigotMC.
When an update is detected, admins (OPs) will receive a smart notification in the chat so you never miss the latest improvements.
This update focuses on making PvPBarrier faster, more stable, and smarter than ever. We have rewritten key parts of the code to fix root issues and optimize performance on high-player servers.
Complete Memory Leak Elimination
We have fixed all known memory leaks to ensure the server does not become overloaded over time.
- Fixed /pvpbarrier edit leak: If an administrator disconnected while editing a region, their data will no longer remain in memory forever.
- Fixed combat disconnect leak: Players who disconnect unexpectedly (crash or timeout) while in combat are now properly removed from the list, preventing memory from filling up.
- Cleanup on /reload: The plugin now fully cleans itself from memory when disabled or reloaded, preventing "zombie instances" that were consuming RAM.
Critical Performance Optimizations
The plugin now consumes significantly fewer resources, especially during intense PvP.
Smart Scheduler: The task that checks players now only focuses on those who are in combat instead of checking every player on the server. This drastically reduces CPU usage.
- World-Based Region Cache: The plugin now organizes regions by world. When checking a player’s position, it only searches within that world’s regions, making detection nearly instantaneous.
- Configuration Cache: Strength and knockback values are loaded into memory once, eliminating the need to read the config.yml file on every player movement.
- Optimized UClans Integration: Compatibility with UClans is now much faster, as required information is cached during server startup instead of being queried on every hit.
