Death Chest

Death Chest - 死亡宝箱

当玩家在可建造区域内死亡时,会生成一个箱子。
Bukkit / Spigot 作者 DevCyntrix 支持版本 1.17 - 1.20
服务器使用量
999
服务玩家数
507
下载量
89,077
插件详细介绍

当玩家死亡时,DeathChest 插件会在其死亡地点生成一个装有掉落物的箱子。箱子上方会显示一个带有倒计时的全息文字。倒计时结束后,箱子将消失,物品也会被清除。如果在倒计时结束前清空箱子,箱子也会提前消失。

重要提示

  • 如需报告问题,请使用 GitHub 页面,以便开发者修复,而不是因此留下差评。
  • 如需帮助或发现漏洞,请通过 Discord 服务器联系:https://discord.gg/SdDeWUB8F6

插件支持

本插件支持以下插件,以提供额外功能

  • WorldGuard、PlotSquared、RedProtect、GriefPrevention:仅在可建造区域生成箱子。
  • ProtocolLib:添加方块破坏动画效果。
  • PlaceholderAPI (PAPI):添加占位符支持。

PAPI 占位符

插件为 PAPI 添加了 %deathchest_last_location% 占位符。如需更改其格式或回退信息,可在 PAPI 的 config.yml 中添加以下配置:

expansions:
  DeathChest:
    location_format: '<x> <y> <z> <world>'
    fallback_message: '&cChest not found'

权限

  • deathchest.admin:允许执行 /deathchest reload 命令。

箱子保护

本插件提供防盗保护功能。你可以在配置文件中指定一个权限,使拥有该权限的玩家的死亡箱子受到保护,防止其他玩家打开。此功能需要与 Vault 插件配合使用。

配置示例 (YAML)

chest:
  # 箱子过期时间(秒)。设置为 -1 可禁用过期。
  expiration: 600
  no-expiration-permission:
    enabled: false
    permission: 'deathchest.stays-forever'
  # 启用后,箱子过期时所有物品将被直接掉落。
  drop-items-after-expiration: false
  # 设置为 true 可使死亡箱子防爆。
  blast-protection: false
  # 防盗保护设置
  thief-protection:
    enabled: false
    permission: 'deathchest.thiefprotected'
    bypass-permission: 'deathchest.thiefprotected.bypass'
    expiration: 0
    # 声音设置,参考:https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
    sound: BLOCK_CHEST_LOCKED;1.0;1.0
    message: |-
      &cYou are not permitted to open this chest

配置详解

以下是配置文件 config.yml 的主要部分说明。

基础设置

update-checker: true
auto-update: true
duration-format: 'mm:ss'

箱子设置

  • chest.expiration:箱子存在时间(秒),-1 为永久。
  • chest.no-expiration-permission:允许特定权限玩家的箱子永久存在。
  • chest.drop-items-after-expiration:箱子过期后物品是否掉落。
  • chest.blast-protection:是否防爆。
  • chest.thief-protection:详细的防盗保护配置。

箱子界面

inventory:
  title: 'Death Chest'
  size: flexible # 可选 'constant' 或 'flexible'
  • size: flexible:箱子大小根据玩家死亡时携带的物品数量动态调整。
  • size: constant:箱子大小固定为 45 格。

全息文字

hologram:
  enabled: true
  height: 1
  line-height: 0.25
  lines:
    - '&7&lR.I.P'
    - '${player_name}'
    - '&3-&6-&3-&6-&3-&6-&3-'
    - '${duration}'

支持占位符:${player_name}, ${player_displayname}, ${duration}

粒子效果

particle:
  enabled: true
  radius: 1.0
  count: 32
  speed: 20.0

方块破坏动画

需要 ProtocolLib。

break-effect:
  enabled: true
  view-distance: 20.0

通知消息

玩家个人通知

player-notification:
  enabled: true
  message: |-
    &7You died. Your items were put into a chest which disappears after &c10 minutes&7! ${x} ${y} ${z}

可用占位符:${player_name}, ${player_displayname}, ${x}, ${y}, ${z}, ${world}, ${world_alias}, ${chest_x}, ${chest_y}, ${chest_z}

全局通知

global-notification:
  enabled: false
  message: |-
    &7${player_name} died at ${x} ${y} ${z} in ${world}

自定义死亡消息

change-death-message:
  enabled: false
  message: |-
    &7${player_name} died at ${x} ${y} ${z} in ${world}

世界过滤器

world-filter:
  filter: blacklist # 可选 'blacklist' 或 'whitelist'
  worlds:
    - disabled_world
world-chest-protection-filter:
  filter: blacklist
  worlds:
    - disabled_world

世界别名

world-alias:
  world: "World"
  world_nether: "Nether"
  world_the_end: "The End"

其他

config-version: 3 # 请勿修改
debug: false # 调试模式

常见问题

  • 如何更新插件? 若要更新到新版本并使用新功能,你需要重命名旧的 config.yml 文件,以便插件生成新的配置文件。
  • 如何请求对其他插件的支持? 请在 GitHub 上提交 Issue,开发者可能会考虑集成支持。
  • 箱子保护如何工作? 需要启用 thief-protection 并配合 Vault 使用。只有拥有指定权限的玩家才能打开受保护的箱子,除非其他玩家拥有绕过权限。

> 西班牙语视频教程:如需视频指南,可搜索相关西班牙语教程。

将文件放入服务器的 plugins 文件夹。安装 Holographic Displays 并重启服务器。本插件不提供任何命令。您可以在 config.yml 中修改一些属性,以自定义服务器上显示的特定消息。

如果您的配置文件中缺少某些属性,建议重命名配置文件,然后重启服务器,让插件重新生成默认配置。

安装步骤

  • 确保服务器已安装 Holographic Displays
  • 将插件文件放入服务器的 plugins 文件夹。
  • 重启服务器以加载插件。

配置

所有设置均在 plugins/JoinLeaveMessages/config.yml 文件中进行。

自定义消息

您可以在配置文件中修改玩家加入和离开时显示的提示消息。支持使用 & 符号作为颜色代码。

配置文件问题

  • 如果配置文件中缺少某些属性,建议将现有的 config.yml 文件重命名或移动到其他位置。
  • 重启服务器,插件会自动生成一个包含所有默认属性的新配置文件。
  • 然后,您可以根据需要编辑新的配置文件。

注意事项

  • 本插件没有任何游戏内命令或权限节点。
  • 本插件依赖 Holographic Displays 来显示全息消息,请确保已正确安装。
  • 修改配置文件后,需要重启服务器或使用 reload 命令才能使更改生效。
测试支持版本
1.17 1.18 1.19 1.20
版本分布
基本信息
插件名称 Death Chest
作者 DevCyntrix
平台 Bukkit / Spigot
支持版本 1.17 - 1.20
点赞数 2
Modrinth 下载 21,145
最近版本
3.0.1 755
2.2.9 188
3.0.0 14
2.2.7 12
2.2.8 9
1.5.24 4
2.0.1 3
1.5.17 3
2.2.5 2
3.0.1-moyo.1 1
2.2.4 1
2.1.1 1