BackInv 1.1
A simple mod for creating backup copies of players' inventories on your server.
Works in both single player and on servers. The developer created this mod as a technical server administrator, facing the lack of convenient solutions for Fabric 1.21.
Available Commands
/backinv <target>- opens a graphical interface with a list of player's backup copies (recommended usage method)/backinv reload- reloads the configuration file (config/backinv/config.json) without server restart/backinv list <target>- shows a text list of player's backup copies (without graphical interface)/backinv load <target> <index>- loads a specific backup copy into the player's inventory/backinv inv <target> <index>- opens a graphical preview of a specific backup copy for the player
Configuration Settings
The configuration file is located at <game or server directory>/config/backinv/config.json.
| Parameter | Description | Type |
|---|---|---|
| enabled | Enables (true) or disables (false) the BackInv mod | boolean |
| prefix | Prefix text displayed in messages | String |
| suffix | Suffix text displayed in messages | String |
| re_join_message | Message shown when player reconnects | String |
| load_player_message | Message when loading player's inventory from file. Supports placeholders: {player}, {file} |
String |
| error_load_player_message | Message when error loading player's inventory. Supports placeholders: {player}, {file}, {e} |
String |
| item_prefix | Prefix applied to items in backup copies | String |
| item_suffix | Suffix applied to items in backup copies | String |
| no_saves_found | Message when no backup copies found for player. Supports placeholder: {player} |
String |
| invalid_index | Message when invalid backup index specified. Supports placeholder: {index} |
String |
| save_not_found | Message when specified backup copy cannot be found. Supports placeholder: {save} |
String |
| error_occurred | General error message when action fails. Supports placeholder: {action} |
String |
{
"enabled":true,
"prefix":"§6[§aBackInv§6] ",
"suffix":"§7",
"re_join_message":"Sorry come back again",
"load_player_message":"Player {player} inventory is loaded from file {file}.",
"error_load_player_message":"Failed to save inventory for player {player} file {file} - Error- {e}",
"item_prefix":"§7",
"item_suffix":"§6",
"no_saves_found":"§cNo saved inventories found for player {player}",
"invalid_index":"§cInvalid save index- {index}",
"save_not_found":"§cSave not found- {save}",
"error_occurred":"§cAn error occurred while {action}"
}
This is the developer's first mod, created during the learning process, so there might be some imperfections, but all discovered errors will be fixed.