▶️ ЗАБЕРИ СВОИ 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.2K
13
Все версииLifesteal Plugin 1.4.0

Lifesteal Plugin 1.4.0

Release8 мес. назад

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

1. BanManager Improvements

ChangeDescription
Fail-safe banningChecks player validity (online state, name) before banning.
Customizable ban reasonsPrepares ban messages with clear reasons and placeholders.
Safer unbanningPrevents unban attempts for null/invalid players.
Consolidated log messagesUnified logging with better error context.
Future-proofingAdded potential for temporary bans (Date parameter left open).

2. HeartManager Improvements

ChangeDescription
Centralized validationSanitizes heart values (no negatives, max cap) via sanitize().
Safe schedulingDelays health update with Bukkit.runTask() only when necessary.
Single DB access per callAvoids redundant DB calls by reusing PlayerData.
Flexible heart updatesaddHearts() and removeHearts() now ensure health sync post-save.
Improved max health logicAlways guarantees at least 1 heart (2.0 health).
Better null handlingAll methods safely return/exit when player or UUID is null.

3. RecipeManager Improvements

ChangeDescription
Recipe validationVerifies shape (3x3 max), logs invalid formats.
Dynamic tiersSupports tier setting for Heart recipe.
Configurable outputsItem name and lore now pulled from config.
Safe removalWraps Bukkit.removeRecipe() with checks.
Centralized registrationregisterAllRecipes() introduced.
Detailed error logsDetects missing/invalid materials per symbol.
Extensible designReady for additional custom recipes.

Added new placeholders!

PlaceholderDescription
%lifesteal_playername%Returns the player’s name, or offline name if player is not online
%lifesteal_uuid%Returns the UUID of the player
%lifesteal_health%Shows the current health (HP) of the player (as an integer)
%lifesteal_maxhealth%Shows the maximum health (HP) of the player (as an integer)
%lifesteal_hearts_left%Displays how many hearts the player can still gain before reaching max
%lifesteal_online_count%Shows the number of currently online players
%lifesteal_database_connected%Displays "true" or "false" depending on whether the database is connected

Файлы

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

Метаданные

Канал релиза

Release

Номер версии

1.4.0

Загрузчики

Bukkit
Paper
Purpur
Spigot

Версии игры

1.21–1.21.8

Загрузок

9.4K

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

8 мес. назад

Загрузил

ID версии

Главная