▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/Lifesteal Plugin
Lifesteal Plugin

Lifesteal Plugin

A fully customizable, production-grade Minecraft plugin that implements a complete lifesteal system with hearts, bans, revives, MySQL support, advanced crafting recipes, and full admin control — designed for scalable SMP servers.

10.0K
13
Все версииLifesteal Plugin 1.2.0

Lifesteal Plugin 1.2.0

Release9 мес. назад

Список изменений

SQL ENHANCEMENTS!!


CategoryImprovementReasonResult
Thread Safety & Singletoninstance field is marked as volatile for thread safety.Ensures safe access to the plugin’s singleton instance across multiple threads.Prevents concurrent thread issues with inconsistent or conflicting access to the plugin instance.
Modularization & ReadabilityRefactored onEnable() and onDisable() into smaller methods (init(), registerListeners(), etc.)Makes the code more modular, readable, and maintainable.Easier to manage and extend the plugin with minimal impact on the core plugin lifecycle.
Error Handling & LoggingEnhanced error logging with detailed logs in critical areas.Provides clearer debugging information when issues arise.Better visibility in logs for identifying and troubleshooting issues.
Command RegistrationCommands now have permissions and tab completions (setTabCompleter(), setPermission()).Enhances command functionality and security.Commands are more user-friendly (with tab completions) and secure (with permissions).
Null Checks & ValidationAdded null checks for commands, listeners, and database connections.Prevents NullPointerException and ensures proper initialization before use.More robust and reliable behavior, with appropriate fallbacks or warnings.
Separation of ConcernsSeparated command and listener registration into individual methods.Improves maintainability by breaking down responsibilities into smaller, manageable chunks.Clearer organization and modularity in the code.
Resource ManagementProper resource cleanup during plugin shutdown (safelyShutdown() method).Prevents memory leaks and ensures that resources are freed correctly when the plugin is disabled.Ensures the plugin shuts down cleanly and frees resources (e.g., database connections).
Logging ImprovementsConsole messages now use Minecraft’s color formatting (& to §).Improves readability and visibility of logs for administrators.More visually appealing and easier-to-read logs for server admins.
SQL EnhancementsEnhanced database interactions with prepared statements and better error handling.Prevents SQL injection and improves the security and reliability of database operations.More secure and stable SQL interactions.
SQL Connection ManagementValidates connection state before performing SQL operations.Ensures the plugin doesn't attempt to execute queries on invalid or closed connections.Prevents errors or unexpected behavior due to closed/stale database connections.
SQL Query ImprovementsReturns default fallback values if SQL queries fail or no data is found.Ensures the plugin continues working smoothly even if database interactions encounter issues or missing data.The plugin continues functioning even when database errors or missing data occur.
SQL Resource ManagementProperly closes database resources (PreparedStatement, ResultSet) using try-with-resources.Ensures resources are properly released, preventing memory leaks and improving performance.More efficient and cleaner database code.
Plugin Disable EnhancementsEnsured safe shutdown of resources (database connections, recipes, etc.).Prevents lingering resources, file locks, or incomplete cleanup during the plugin's shutdown.A stable and reliable server experience with clean shutdown behavior.

Файлы

lifesteal-smp-1.2.0.jar(285.53 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.2.0

Загрузчики

Bukkit
Paper
Purpur
Spigot

Версии игры

1.21–1.21.7

Загрузок

202

Дата публикации

9 мес. назад

Загрузил

ID версии

Главная