
Life Insurance
Life Insurance Plugin For inventory/xp Player Save With Vault Economy
38
0
Список изменений
LifeInsurance Plugin – Changelog / Update Highlights
Version: Updated build
1. GUI Improvements
-
🖼️ Expanded GUI to 18 slots for a cleaner layout.
-
💰 Buy Insurance slot is now clearly defined (slot 4) — clicking other slots does nothing.
-
🪦 Player Profile Head added (slot 9): shows the player’s current balance using Vault.
-
🟢🔴 Insurance Status slot (slot 17):
- Lime Dye: Insurance active, shows remaining hours & minutes.
- Red Dye: No insurance, inventory is not protected.
2. Insurance Purchase Logic
- ✅ Only triggers when clicking the buy insurance item (slot 4).
- 💸 Checks player balance using Vault and deducts the configured price.
- ⏳ Activates insurance for the configured duration.
- 📁 Saves active insurance to
insurances.yml, so it persists across server restarts.
3. Death Protection
- 🛡️ Protects inventory and experience if insurance is active.
- 💀 After saving, the insurance is consumed automatically.
- 🔄 Expired insurance is removed from storage automatically.
4. Optional Kill Skull Feature
-
⚰️ When a player is killed by another player and
kill-skullis enabled in config:- Drops the victim’s player head at the death location.
- Head displays the victim’s name.
5. Economy Integration
- 💰 Fully compatible with Vault economy plugins.
- Displays player balance in GUI.
- Deducts configurable price when buying insurance.
6. Storage & Persistence
- 📁 All active insurances stored in a separate
insurances.ymlfile. - 🔄 Insurances survive server restarts.
- Automatically loads active insurances on plugin startup.
7. Configurable Options
- Price, duration, GUI title, item type, name, and lore fully configurable.
- Optional kill-skull feature controlled via
kill-skullboolean in config.
8. Code & Safety Improvements
- Null safety checks for items and meta in GUI.
- Clear separation of GUI slots for buy, status, and profile.
- Insurance time displayed in hours and minutes for better clarity.
- Cleaned up storage logic to prevent config clutter.
Summary: This update makes LifeInsurance more user-friendly and visually informative: players can now see their profile, balance, and insurance status at a glance. It also introduces a kill-skull feature, GUI improvements, and ensures all insurances persist safely with separate storage.
Файлы
LifeInsurance-1.1.jar(8.56 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.2
Загрузчики
PaperPurpurSpigot
Версии игры
1.17.1–1.21.11
Загрузок
31
Дата публикации
2 мес. назад
