BackInv

模组

· 作者 UserLog

在玩家死亡前为其背包创建备份副本,可通过命令加载这些备份。

0 本站下载 0 关注 更新于 1 年前

需要前置:Fabric API、Polymer

最新 1.1.6 · 1.20.6 · Fabric

一键开服(送7天)

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":"无法为玩家 {player} 保存文件 {file} - 错误:{e}", "item_prefix":"§7", "item_suffix":"§6", "no_saves_found":"§c未找到玩家 {player} 的已保存背包", "invalid_index":"§c无效的存档索引 - {index}", "save_not_found":"§c未找到存档 - {save}", "error_occurred":"§c在执行 {action} 时发生错误" }


这是我的第一个模组,我是边学边做的,所以犯了不少错误,而且并非所有内容都经过测试(但我会修复所有 bug!)。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源