[ D R A F T ] [ D R A F T ] [ D R A F T ] [ D R A F T ] [ D R A F T ] [ D R A F T ] [ D R A F T ]
[КАРТИНКА — баннер плагина]
Protect what matters. Insure your best gear.
A lightweight, vanilla-friendly item insurance system.
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. Features
- Insurance Book — Combine with any allowed item at the anvil for free. The item gets an insured lore tag. On death it is saved and returned on respawn.
- Identification Book — Stamp your name onto any item as its owner. Great for economy servers, player shops, and settling ownership disputes.
- Book of Oblivion — Remove your own signature from an item. Costs 1 XP level. Only the original signer can use it.
- 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.
- Optional MySQL / MariaDB logging — Log every death event and player response (YES / NO / TIMEOUT). Includes an admin command to restore any individual item from the database by record ID.
- PDC-based, not lore-based — Insurance and ownership data live 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 — All three books use Custom Model Data values, configurable in config.yml. Pair with your own resource pack for custom book textures.
- 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
Step 2 — Die
When the player dies, all insured items are silently removed from the death drops and saved to a file along with their original slot numbers and death coordinates.
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.
[КАРТИНКА — скриншот наковальни с книгой и предметом]
[КАРТИНКА — скриншот чат-промпта после респауна]
[КАРТИНКА — скриншот лора застрахованного предмета]
Edge Cases
- Player dies twice before confirming — the second death adds to the pending list, not overwrites it. The timeout resets.
- Inventory full on confirm — items remain in storage. The player uses /insurance claim after freeing space.
- Player uses /deny — items drop at the death location still insured, ready to protect the player again on the next death.
- 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.