Beehive Insurance Lite icon

Beehive Insurance Lite -----

Insure your items and recover them after death



Protect what matters. Insure your best gear.
A lightweight, vanilla-friendly item insurance system.

beehiveInsurance_cropped_banner.png

Lost your Netherite sword with Sharpness V to a creeper? Not anymore!
BeehiveInsurance lets players protect their most valuable items by combining them with an Insurance Book at the anvil. When an insured player dies, those items are pulled out of the death drops and saved. On respawn, a clickable prompt appears in chat — confirm to get everything back in the correct inventory slots, or decline to have it all dropped at the death location.

No graves. No chests. No complex setup. Just insure the item and play.

Found a bug? Report issues and feature requests [here]
Need more help? Join the discord server [here]


It includes the core insurance mechanic with the following limitations:
— Up to 3 insured items are saved per death. The rest drop normally.
— Item identification (owner signature) is not available.
— MySQL / MariaDB logging is not available.
The full edition removes all of these restrictions.

Features
Insurance Book — Combine with any allowed item at the anvil. The item gets an insured lore tag. On death it is saved and returned on respawn. Up to 3 insured items per death are protected in this edition.
Smart respawn prompt — A clickable [YES] / [NO] message appears in chat 1 second after respawning. Configurable timeout (default 120 s); on timeout items drop at death coordinates automatically.
YAML storage, no database required — Insured items are stored in human-readable per-player YAML files. Survives server restarts. Players can use /insurance claim after rejoining to re-trigger the prompt.
PDC-based, not lore-based — Insurance data lives in PersistentDataContainer, not the lore. Lore is only a visual indicator and auto-repairs itself the next time the player holds the item.
Resource pack ready — The insurance book uses a Custom Model Data value, configurable in config.yml.
Multi-language — Ships with English and Russian (lang/en.yml, lang/ru.yml). All player-facing text is fully customizable.
Configurable item filter — Whitelist specific materials for the insurance book. Admins can bypass the filter at any time via command.

How It Works
Step 1 — Insure
Place any allowed item in the left slot of an anvil and the Insurance Book in the right slot. Take the result — the item is insured, the book is consumed, no XP cost.
Step 2 — Die
When the player dies, up to 3 insured items are silently removed from the death drops and saved to a file along with their original slot numbers and death coordinates. Additional insured items beyond the limit drop normally.
Step 3 — Choose
One second after respawning, a clickable message appears in chat:
"Would you like to restore your insured items? [YES] [NO]"

YES — items are returned to their original slots (or the first free slot if occupied). The insurance tag is removed after a successful return.
NO — items drop at the death location. The insurance tag stays on the item — they are still insured for the next death.
Timeout — if the player does not answer in time, items drop automatically and the player is notified.

Restart-safe: if the server restarts before the player responds, the file is preserved and the prompt re-appears automatically on next login.

Commands
Player commands:
/insurance claim
— Re-show the restore prompt (after restart or reconnect)

Admin commands (require beehivebooks.admin or OP):
/insurance admin addinsurance
— Insure the item in hand (bypasses the material filter)
/insurance admin removeinsurance — Remove insurance from the item in hand
/insurance admin giveinsurancebook — Give yourself an Insurance Book
/insurance admin reload — Reload config and lang files without restarting

Permissions
beehivebooks.use — Access to /insurance confirm, deny, claim — granted to everyone by default
beehivebooks.admin — Access to all admin sub-commands — granted to OP by default

Configuration
Code (YAML):
# -------------------------------------------------------
# BeehiveInsurance Configuration
# -------------------------------------------------------

# Language for all player-facing messages.
# Corresponding file must exist in the plugin's lang/ folder.
# Bundled options: ru, en
language
: en

# How many seconds the player has to respond to the insurance restore prompt
# after respawning. If the timer expires, items are dropped at the death location.
insurance-timeout
: 120

# Custom model data value for the insurance book.
# Must match the value set in your resource pack.
books
:
  insurance-book
:
    custom-model-data
: 1001
    xp-cost
: 0

# Whether to restrict which materials can be insured via the insurance book.
# true  — only materials listed in allowed-items below can be insured.
# false — any material can be insured (allowed-items list is ignored).
filter-enabled
: true

# List of materials that can be insured via the insurance book at an anvil.
# Only used when filter-enabled is true.
allowed-items
:
 - TRIDENT
  - ELYTRA
  - DIAMOND_SWORD
  - DIAMOND_PICKAXE
  - NETHERITE_SWORD
  - NETHERITE_PICKAXE
  - ... (full list in the downloaded config )
lang/en.yml contains all player-facing text: book name, lore lines, action bar messages, and chat prompts — fully customizable.

Edge Cases

Player dies twice before confirming — the second death adds to the pending list, not overwrites it. The timeout resets. The 3-item limit applies per death event independently.
Inventory full on confirm — items remain in storage. The player uses /insurance claim after freeing space.
Server restarts mid-prompt — the YAML file survives. The prompt re-appears automatically on next login.
Another plugin corrupts the lore — auto-repaired the next time the player holds the item.
Resource Information
Author:
----------
Total Downloads: 3
First Release: Mar 18, 2026
Last Update: Mar 18, 2026
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings