DeathChest - 死亡箱子插件
一个 Minecraft 服务器插件,会在玩家死亡时自动创建一个包含其物品的箱子。
依赖项:
DecentHolograms - 可选(用于在箱子上方显示全息图)
? 版本兼容性
| 插件版本 |
支持的 Paper |
Java |
1.4.0+ |
1.20 – 26.3 |
25 |
1.3.2 |
1.20 – 1.21.11 |
21 |
? 功能特性
- 自动创建箱子 – 死亡后,所有玩家物品都会被放入一个箱子中
- 灵活配置 – 提供多种设置以满足不同需求
- 箱子保护 – 防爆炸、防火、防活塞推动
- 权限系统 – 灵活的访问管理
- WorldGuard 兼容 – 箱子可以在受保护的区域内打开
- 多世界支持 – 可以限制在特定世界中创建箱子
- 箱子上方的全息图 – 显示拥有者的名字(需要 DecentHolograms)
- 自动清理 – 定期任务移除过期的箱子
?️ 截图

⚙️ 安装方法
- 下载最新版本
- 将
.jar 文件放入服务器的 plugins/ 文件夹中
- 重启服务器
- 根据需要配置文件
- 使用
/dchest reload 或重启服务器来重新加载插件
? 命令
/deathchest list – 列出你的死亡箱子
/deathchest reload – 重新加载配置和箱子(需要权限)
/deathchest version – 显示插件版本
/deathchest help – 显示帮助信息
别名:/dchest
? 权限
deathchest.use – 使用插件的基本权限(默认:true)
deathchest.reload – 重新加载配置和箱子(默认:op)
deathchest.admin – 管理员权限(默认:op)
deathchest.* – 所有插件权限
? 配置
config.yml 文件会在首次运行时自动创建:
# DeathChest - 配置
# 箱子创建设置
chest-creation:
# 仅在被生物杀死时才创建箱子
mob-death-only: false
# 是否可以在实心方块上生成箱子
allow-solid-block-spawn: false
# 允许生成死亡箱子的世界(空 = 所有世界)
allowed-worlds: [ ]
# 禁止生成死亡箱子的黑名单世界
blacklisted-worlds: [ ]
# 箱子交互设置
chest-interactions:
# 玩家是否可以与其他人的死亡箱子互动
allow-access-others-chests: true
# 玩家是否可以破坏死亡箱子
player-breakable: true
# 箱子是否防爆炸
explosion-proof: true
# 当箱子被炸毁时物品是否会掉落
items-drop-when-exploded: true
# 当玩家破坏箱子时物品是否会掉落
items-drop-when-broken: true
# 自动移除空的箱子
remove-empty-chests: true
# 箱子外观设置
chest-appearance:
# 自定义箱子标题(支持 MiniMessages)
title: "<gradient:gold:white>死亡箱子:</gradient> <gold>{player}"
# 箱子过期时间(分钟)(0 = 永不过期)
expiration-time: 1440 # 默认 24 小时
# 在箱子上方显示全息图(需要 DecentHolograms)
hologram-enabled: true
# 不支持 MiniMessages,请使用 https://wiki.decentholograms.eu/general/format-and-colors/colors/ 中的颜色代码
hologram:
- "<#800000>☠ <#FFD700>死亡箱子 </#FFFFFF><#800000>☠"
- "<#FFD700>玩家: <#FFFFFF>{owner}"
# 时间翻译
time-ago:
days: "天"
hours: "小时"
minutes: "分钟"
# 消息前缀(支持 MiniMessages)
prefix: "<gradient:gold:white>[DeathChest]</gradient>"
# 消息内容(支持 MiniMessages)
messages:
# 命令相关
player-only: "<red>此命令只能由玩家使用。"
no-permission: "<red>你没有权限使用此命令"
help: |
<gradient:gold:white>=== DeathChest 命令 ===
<white>/deathchest list <gray>- 列出你的死亡箱子
<white>/deathchest reload <gray>- 重新加载配置(需要权限)
<white>/deathchest version <gray>- 显示插件版本
<white>/deathchest help <gray>- 显示此帮助信息
version: "<white>DeathChest <yellow>v{version}"
list-header: "<gradient:gold:white>=== 你的死亡箱子 ===</gradient>"
list-format: "<yellow>世界: <white>{world} <yellow>X: <white>{x} <yellow>Y: <white>{y} <yellow>Z: <white>{z} <gray>(距今 {time})"
list-numbered: "<white>{number}. "
no-chests: "<green>你没有活跃的死亡箱子"
reload-success: "<green>配置已重新加载!"
# 监听器相关
chest-created: "<white>你的死亡箱子已创建于坐标:<yellow>X: {x} Y: {y} Z: {z}。"
chest-accessed: "<white>你正在打开玩家 <yellow>{player}</yellow> 的死亡箱子。"
access-denied: "<red>这个死亡箱子属于玩家:<yellow>{player}。"
cannot-break: "<red>当箱子内有物品时,你不能破坏它!"
chest-removed: "<green>因为你取走了所有物品,死亡箱子消失了。"
chest-broken-own: "<white>你破坏了自己的死亡箱子。"
chest-broken-other: "<white>你破坏了玩家 <yellow>{player}</yellow> 的死亡箱子。"
? 特定行为
箱子保护
- 防爆保护 – 箱子受到爆炸保护(可配置)
- 防火保护 – 箱子不会燃烧或起火
- 防活塞保护 – 活塞无法推动死亡箱子
- 区域访问 – 即使在受保护的 WorldGuard 区域内,箱子也可以打开
智能创建
- 位置搜索 – 插件会自动搜索适合放置箱子的位置
- 物品检查 – 如果玩家没有物品,则不会创建箱子
- 世界过滤 – 可以限制在特定世界中创建箱子
权限管理
- 所有权 – 仅所有者可以打开其箱子(可配置)
- 破坏权限 – 允许破坏箱子的设置可配置
- 自动移除 – 空箱子会被自动移除
- 全息显示 – 若启用,箱子上方会显示所有者名称
自动管理
DeathChest - Death Chest Plugin
A plugin for Minecraft servers that automatically creates a chest containing a player's items upon death.
Dependencies:
DecentHolograms - optional (to display a hologram above the chest)
? Version Compatibility
| Plugin version |
Supported Paper |
Java |
1.4.0+ |
1.20 – 26.3 |
25 |
1.3.2 |
1.20 – 1.21.11 |
21 |
? Features
- Automatic Chest Creation – Upon death, all player items are placed into a chest
- Flexible Configuration – Multiple settings for various needs
- Chest Protection – Explosion, fire, and piston protection
- Permission System – Flexible access management
- WorldGuard Compatibility – Chests can be opened in protected regions
- Multi-World Support – Can restrict chest creation in specific worlds
- Holograms Above Chest – Displays the owner's name (requires DecentHolograms)
- Automatic Cleanup – Periodic task removes expired chests
?️ Screenshots

⚙️ Installation
- Download the latest version
- Place the
.jar file into your server's plugins/ folder
- Restart the server
- Configure the config file to your liking
- Reload the plugin with
/dchest reload or restart the server
? Commands
/deathchest list – List your death chests
/deathchest reload – Reload configuration and chests (requires permission)
/deathchest version – Show plugin version
/deathchest help – Show help
Alias: /dchest
? Permissions
deathchest.use – Basic permission to use the plugin (default: true)
deathchest.reload – Reload configuration and chests (default: op)
deathchest.admin – Administrator permissions (default: op)
deathchest.* – All plugin permissions
? Configuration
The config.yml file is automatically created on first run:
# DeathChest - Configuration
# Chest creation settings
chest-creation:
# Create a chest only upon death by a mob
mob-death-only: false
# Can a chest spawn instead of a solid block
allow-solid-block-spawn: false
# Worlds where death chests are allowed (empty = all worlds)
allowed-worlds: [ ]
# Disabled worlds where death chests are turned off
blacklisted-worlds: [ ]
# Chest interaction settings
chest-interactions:
# Can players interact with others' death chests
allow-access-others-chests: true
# Can players break a death chest
player-breakable: true
# Is the chest protected from explosions
explosion-proof: true
# Do items drop when the chest is exploded
items-drop-when-exploded: true
# Do items drop when the chest is broken by a player
items-drop-when-broken: true
# Automatically remove empty chests
remove-empty-chests: true
# Chest appearance settings
chest-appearance:
# Custom chest title (supports MiniMessages)
title: "<gradient:gold:white>Death Chest:</gradient> <gold>{player}"
# Chest expiration time in minutes (0 = never expires)
expiration-time: 1440 # Default 24 hours
# Display hologram above chest (requires DecentHolograms)
hologram-enabled: true
# Does not support MiniMessages, use colors from https://wiki.decentholograms.eu/general/format-and-colors/colors/
hologram:
- "<#800000>☠ <#FFD700>Death Chest </#FFFFFF><#800000>☠"
- "<#FFD700>Player: <#FFFFFF>{owner}"
# Time translation
time-ago:
days: "days"
hours: "hours"
minutes: "minutes"
# Message prefix (supports MiniMessages)
prefix: "<gradient:gold:white>[DeathChest]</gradient>"
# Messages (supports MiniMessages)
messages:
# commands
player-only: "<red>This command can only be used by players."
no-permission: "<red>You do not have permission to use this command"
help: |
<gradient:gold:white>=== DeathChest Commands ===
<white>/deathchest list <gray>- List your death chests
<white>/deathchest reload <gray>- Reload configuration (requires permission)
<white>/deathchest version <gray>- Show plugin version
<white>/deathchest help <gray>- Show this help
version: "<white>DeathChest <yellow>v{version}"
list-header: "<gradient:gold:white>=== Your Death Chests ===</gradient>"
list-format: "<yellow>World: <white>{world} <yellow>X: <white>{x} <yellow>Y: <white>{y} <yellow>Z: <white>{z} <gray>({time} ago)"
list-numbered: "<white>{number}. "
no-chests: "<green>You have no active death chests"
reload-success: "<green>Configuration reloaded!"
# listeners
chest-created: "<white>Your death chest was created at coordinates: <yellow>X: {x} Y: {y} Z: {z}."
chest-accessed: "<white>You are opening the death chest of player: <yellow>{player}."
access-denied: "<red>This death chest belongs to player: <yellow>{player}."
cannot-break: "<red>You cannot break this death chest while it contains items!"
chest-removed: "<green>The death chest disappeared because you took all items."
chest-broken-own: "<white>You broke your own death chest."
chest-broken-other: "<white>You broke the death chest of player <yellow>{player}."
? Specificity
Chest Protection
- Explosion Protection – Chests are protected from explosions (configurable)
- Fire Protection – Chests do not burn or catch fire
- Piston Protection – Pistons cannot move death chests
- Region Access – Chests can be opened even in protected WorldGuard regions
Smart Creation
- Location Search – The plugin automatically searches for a suitable place for the chest
- Item Check – If a player has no items, a chest is not created
- World Filter – Can restrict chest creation in specific worlds
Access Management
- Ownership Rights – Only the owner can open their chest (configurable)
- Breaking Permission – Ability to break chests can be configured
- Auto-Removal – Empty chests are automatically removed
- Holograms – Owner's name is displayed above the chest if enabled
Automatic Management
- Periodic Cleanup – Expired chests are automatically removed
评论 0
登录后参与评分
还没有评论,来抢沙发吧