
返回
在玩家死亡前创建其物品栏的备份副本,可使用命令加载。
查看大图BackInv 1.1
一个为你的服务器提供的简单玩家备份模组。
可在单人游戏中使用。
我是服务器的技术管理员,遇到了一个问题:在 Fabric 1.21 上,只有 Death Backup 可用,而它对服务器并不友好。
命令:
/backinv <target>- 打开一个图形界面,列出该玩家的备份(推荐)。/backinv reload- 重新加载配置文件(config/backinv/config.json),无需重启服务器。/backinv list <target>- 以文本列表形式显示该玩家的备份(无图形界面)。/backinv load <target> <index>- 将指定的备份加载到玩家物品栏中。/backinv inv <target> <index>- 为玩家打开指定备份的图形界面预览。
配置
配置文件位于 <游戏或服务器目录>/config/backinv/config.json。
| 名称 | 描述 | 类型 |
|---|---|---|
| enabled | 启用(true)或禁用(false)BackInv 模组。 | boolean |
| prefix | 消息中显示的前缀文本。 | String |
| suffix | 消息中显示的后缀文本。 | String |
| re_join_message | 玩家重新连接时显示的消息。 | String |
| load_player_message | 从文件加载玩家物品栏时显示的消息。支持占位符:{player}、{file}。 |
String |
| error_load_player_message | 加载玩家物品栏失败时显示的消息。支持占位符:{player}、{file}、{e}。 |
String |
| item_prefix | 应用于备份中显示物品的前缀。 | String |
| item_suffix | 应用于备份中显示物品的后缀。 | String |
| no_saves_found | 未找到玩家备份时显示的消息。支持占位符:{player}。 |
String |
| invalid_index | 提供了无效的备份索引时显示的消息。支持占位符:{index}。 |
String |
| save_not_found | 找不到指定备份时显示的消息。支持占位符:{save}。 |
String |
| error_occurred | 操作失败时显示的通用错误消息。支持占位符:{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}"
}
这是我的第一个模组,我是一边做一边学的,所以犯了很多错误,并不是所有功能都经过了测试(但我会修复所有 bug!)。
正在加载版本记录…


正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。