Recov

Recov

A lightweight server-side plugin that stores player inventories on death, so that they can be restored if needed.

by
138 Downloads
fabricmanagementutility
Rent Server with this Mod

About this Mod

This fabric mod is meant to be installed on the server only. It will detect player deaths and cache their inventories for some period of time. During this period, a server administrator can easily restore the items to the player.

The plugin is interacted with entirely through a command API. The actions are all subcommands of the recov command.

The commands are listed below.

/recov list [<player>]
/recov list [<onlyOnlinePlayers>] [<filter>]
/recov clear [<player>]
/recov restore <player> [<deathNumber>] [<sourcePlayer>]
/recov printDeathInventory <player> [<deathNumber>]
/recov setTicksUntilExpired <ticksUntilExpired>
/recov setTickUpdatePeriod <tickUpdatePeriod>
/recov setMaxInventoriesPerPlayer <maxInventoriesPerPlayer>
/recov setRequirePermissionToCache <requirePermissionToCache>

The list command, with no arguments passed, will list players who have stored inventories, including offline players. When passing a player's username, it will list the death inventories of that player.
The second set of optional arguments for the list command will allow one to only view the inventories of online players, and specify an optional filter.
A consequence of this is that, if one wants to list the death inventories of players whose names are either true or false, one must specify them in all uppercase. So,
/recov list TRUE will list the inventories of the player whose username is true, which /recov list true will list the players who are online and who have death inventories.

The clear command, with zero parameters,
will clear all death inventories. When passing a player's username, it will only clear that player's death inventories.

The restore command will restore a player's inventory. The deathNumber field specifies which death to restore from. If you want to restore the death inventory of one player to a different one, you can use the sourcePlayer parameter.

The printDeathInventory command will print the items in a player's inventory at the time of their death.

The setTicksUntilExpired will set the amount of ticks the mod will wait before deleting a player death inventory entry.
By default, this is set to 48000.

The setTickUpdatePeriod will set the amount of time the mod will wait before checking if there are any expired death inventories to remove.
By default, this is set to 8000.

The setMaxInventoriesPerPlayer will set the maximum inventories per player. If any more deaths occur, the oldest inventories are deleted early.
By default, this is set to 10.

The setRequirePermissionToCache will set whether the plugin will check if a player has the recov.cacheinventory permission before caching their inventory on death.
By default, this is set to false.

!!! DO NOT ENABLE setRequirePermissionToCache IF THE SERVER DOES NOT HAVE A PERMISSIONS MOD/PLUGIN. IT WILL CRASH ON ANY PLAYER DEATH !!!

Players with permission level of at least 3 have access to all recov commands, but they do not have the recov.cacheinventory permission.
If you are using a permissions mod, the following permissions correspond to
each command.

Permission Description
recov.command.recov.list Required to use the list subcommand.
recov.command.recov.clear Required to use the clear subcommand.
recov.command.recov.restore Required to use the restore subcommand.
recov.command.recov.printDeathInventory Required to use the printDeathInventory subcommand.
recov.command.recov.configure Required to use any of the configuration subcommands, which are setTicksUntilExpired, setTickUpdatePeriod, setMaxInventoriesPerPlayer, and setRequirePermissionToCache.
recov.cacheinventory Required to have inventory cached if requirePermissionToCache is set to true.

Removing the recov.cacheinventory permission from a player will not clear their currently-existing cached inventories.

Available Versions

Recov 1.0.1beta
MC 1.21.4fabric
February 10, 2025
Recov 1.0.0beta
MC 1.21.4fabric
January 16, 2025

How to Install Recov on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.4).

3

Install Mod

Open the mod browser in the dashboard and search for "Recov". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.4

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Recov server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.4). You can switch loaders with one click in the panel.

Is Recov compatible with fabric?

Recov officially supports fabric for Minecraft 1.21.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Recov – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Recov consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Recov with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.4