RestoreUponDeath – 死亡不掉落 v0.6.3

RestoreUponDeath – 死亡不掉落 v0.6.3

RestoreUponDeath.cs
cs文件
29.3K

当玩家死亡时,从其背包中保存物品,并在其重生时恢复。这些物品会从玩家尸体中移除,以防止物品重复。

权限

所有权限均与损失百分比配置文件关联。默认情况下,玩家无权使用此插件。您需要授予其中一项提供的权限,或创建您自己的权限。
restoreupondeath.default — 默认权限(掉落75%)
restoreupondeath.beltonly — 中级权限(掉落50%)
restoreupondeath.admin — 管理权限(掉落00%)

配置

{
  // 是否在玩家重生时给予默认物品(当存在待恢复物品时)
  "Give default items upon respawn if the players is having items restored": false,
  
  // 玩家死亡时是否可掉落手持物品
  "Can drop active item on death": false,
  
  // 玩家死亡时是否可掉落背包
  "Can drop backpack on death": true,
  
  // 玩家自杀时是否不恢复物品(注意:commited 应为 committed,可能是拼写错误)
  "Don't restore items if player commited suicide": false,
  
  // 地图重置时是否清除所有存储数据
  "Wipe stored data when the map wipes": false,

  // 物品损失比例系统(基于权限组)
  "Percentage of total items lost (Permission Name | Percentage (0 - 100))": {
    // 默认权限组设置
    "restoreupondeath.default": {
      "Belt": 75,    // 快捷栏物品保留比例
      "Wear": 75,    // 装备栏物品保留比例
      "Main": 75     // 主背包物品保留比例
    },
    // 仅保留快捷栏权限组
    "restoreupondeath.beltonly": {
      "Belt": 100,   // 完全保留快捷栏物品
      "Wear": 0,     // 不保留装备
      "Main": 0      // 不保留主背包
    },
    // 管理员权限组
    "restoreupondeath.admin": {
      "Belt": 0,     // 不保留任何物品
      "Wear": 0,
      "Main": 0
    }
  },

  // 插件版本信息
  "Version": {
    "Major": 0,      // 主版本号(重大更新)
    "Minor": 3,      // 次版本号(功能更新)
    "Patch": 0       // 修订号(问题修复)
  }
}
© 版权声明
THE END
喜欢就支持一下吧
点赞14
评论 抢沙发

请登录后发表评论

    暂无评论内容