Recov

Quick rating

Recov

No reviews yet

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

QoL & Tweaks
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Server Only

Runs entirely on the server. Also works in singleplayer.

About

Project Details

Type
Mod
License
MIT License
Latest Version
recov-1.0.1.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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.

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.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works