DeathRecoverySpectator
DeathRecoverySpectator 改变了常规的死亡循环:玩家死亡后,会变成旁观者模式,并必须找到死亡地点以恢复部分物品栏。
插件不会立即掉落所有物品,而是保存玩家的物品并将他们送入旁观者模式。玩家有有限的时间前往标记的死亡位置。如果在规定时间内到达,可配置的已保存物品堆比例将被返还。如果时间耗尽,所有已保存的物品将在死亡地点掉落。
功能
- 在死亡时保存玩家的物品栏、盔甲和副手物品
- 重生后将玩家置于旁观者模式
- 将玩家传送至同世界内可配置的旁观者出生点
- 操作栏显示以下信息:
- 使用粒子效果标记死亡点
- 当玩家到达该位置时,恢复可配置比例的物品堆
- 将剩余或过期的物品在死亡地点掉落
- 将活跃的死亡会话持久化保存到
plugins/DeathRecoverySpectator/deaths.yml
- 支持服务器重启后保留数据
- 支持使用
& 颜色代码的可配置消息
- 包含
/drs reload 命令用于实时重载配置
工作原理
- 玩家死亡。
- 插件保存掉落物,而不是让它们立即掉落。
- 重生后,玩家进入旁观者模式。
- 操作栏指引玩家返回死亡点。
- 如果在计时结束前到达标记位置周围 3 格半径范围内,部分物品将被恢复。
- 如果计时器过期,已保存的物品将在死亡地点掉落。
命令
| 命令 |
描述 |
权限 |
/drs reload |
重载插件配置 |
deathrecoveryspectator.reload |
权限
| 权限 |
默认值 |
描述 |
deathrecoveryspectator.reload |
OP |
允许重载插件配置 |
DeathRecoverySpectator
DeathRecoverySpectator changes the usual death loop: after dying, players become spectators and must find their death point to recover part of their inventory.
Instead of instantly dropping everything, the plugin saves the player's items and sends them into Spectator mode. The player has a limited amount of time to reach the marked death location. If they make it in time, a configurable percentage of saved item stacks is returned. If time runs out, all saved items are dropped at the death point.
Features
- Saves player inventory, armor, and offhand items on death
- Sends the player into Spectator mode after respawn
- Teleports the player to a configurable spectator spawn in the same world
- Shows an action bar with:
- remaining time
- distance to the death point
- relative direction arrow
- Marks the death point with particles
- Restores a configurable percentage of item stacks when the player reaches the location
- Drops remaining or expired items at the death point
- Persists active death sessions in
plugins/DeathRecoverySpectator/deaths.yml
- Survives server restarts
- Supports configurable messages with
& color codes
- Includes
/drs reload for live config reloads
How It Works
- A player dies.
- Their drops are saved by the plugin instead of falling immediately.
- After respawn, the player is placed in Spectator mode.
- The action bar guides them back to the death point.
- If they reach a 3-block radius around the marked location before the timer ends, part of their items are restored.
- If the timer expires, the saved items drop at the death location.
Commands
| Command |
Description |
Permission |
/drs reload |
Reloads the plugin configuration |
deathrecoveryspectator.reload |
Permissions
| Permission |
Default |
Description |
deathrecoveryspectator.reload |
OP |
Allows reloading the plugin config |
评论 0
登录后参与评分
还没有评论,来抢沙发吧