DeathOnTheSpot v1.3.5 - 你决定死后你的物品去向何方。没人希望自己的物品落入错误的人手中!
DeathOnTheSpot 是一款基于 Kotlin 的 Minecraft 插件,专为 Paper 服务器打造,彻底革新了死亡机制。玩家的物品栏在死亡时会被安全保存,而非散落在世界中,之后管理员可指定一个“死亡箱子”,玩家从中取回物品。
本插件是“Matt's Plugins”系列的首款作品——敬请期待后续更多插件!
核心功能
- 安全的物品栏保存:再也不用担心丢失物品!完整的物品栏会被序列化为 JSON 并持久化存储
- 管理员控制的取回方式:使用
/setdeathchest 设置死亡箱子位置——玩家通过右键交互访问虚拟图形界面以安全取回物品
- 双箱支持:自动检测并配置双箱,每页支持 54 个槽位的存储空间
- 高级图形界面系统:两种视图模式——“全部一起”和“按死亡记录”,具备智能物品堆叠与优先级排序功能
- 逐个取回:只有当玩家认领物品时才会从存储中移除,防止意外丢失
- 自动清理:一旦所有物品被完全取回,数据文件将被删除
- 全面的管理工具:完整的命令套件用于管理死亡箱子和玩家数据
- 迁移系统:无缝升级至新版本,支持自动数据迁移
工作原理
- 玩家死亡 → 物品栏保存至
plugins/DeathOnTheSpot/death_data/{UUID}.json
- 管理员面朝箱子方块时使用
/setdeathchest 设置箱子
- 玩家右键点击该箱子 → 打开高级图形界面 → 点击物品进行取回
- 物品在被认领后从存储中消失,并正确追踪数量
- 双箱检测会自动处理相邻箱子的放置情况
命令与权限
/setdeathchest - 设置死亡箱子位置 (权限: deathonthespot.setchest)
/deathchest <list|clear|view|reload|upgrade> - 管理员管理 (权限: deathonthespot.admin)
/deathchest upgrade - 升级为双箱 (权限: deathonthespot.upgrade)
安装说明
- 需要:Java 21+、Paper 1.21.10+
- 设置方法:将 JAR 文件放入
plugins/ 目录,重启服务器,配置箱子位置
- 迁移:自动从旧版本升级,并创建备份
依赖项
- Paper API(由服务器提供)
- Kotlin Stdlib 2.1.0、Jackson 2.15.2(已打包在 JAR 文件中)
DeathOnTheSpot v1.3.5 - You choose where your bits go when you die. Nobody wants their bits to fall in the wrong hands!
DeathOnTheSpot is a Kotlin-based Minecraft plugin for Paper servers that revolutionizes death mechanics. Instead of
scattering items across the world, players' inventories are securely saved upon death and can be retrieved from a
designated "death chest" set by administrators.
This plugin is the first of "Matt's Plugins" - expect more to come!
Key Features
- Secure Inventory Preservation: No more lost items! Full inventories are serialized to JSON and stored persistently
- Admin-Controlled Retrieval: Set a death chest location with /setdeathchest – players interact with it to access a
virtual GUI for safe item recovery
- Double Chest Support: Automatic detection and configuration of double chests with 54-slot per page storage capacity
- Advanced GUI System: Two view modes - "All Together" and "By Death" with intelligent item stacking and prioritization
- One-by-One Retrieval: Items are removed from storage only when claimed, preventing accidental loss
- Automatic Cleanup: Data files are deleted once inventories are fully retrieved
- Comprehensive Admin Tools: Full command suite for managing death chests and player data
- Migration System: Seamless upgrades from previous versions with automatic data migration
How It Works
- Player dies → Inventory saved to plugins/DeathOnTheSpot/death_data/{UUID}.json
- Admin sets chest with /setdeathchest while looking at a chest block
- Players right-click the chest → Open advanced GUI → Click items to retrieve
- Items vanish from storage upon claim with proper amount tracking
- Double chest detection automatically handles adjacent chest placement
Commands & Permissions
- /setdeathchest - Set death chest location (deathonthespot.setchest)
- /deathchest <list|clear|view|reload|upgrade> - Admin management (deathonthespot.admin)
- /deathchest upgrade - Upgrade to double chest (deathonthespot.upgrade)
Installation
- Requires: Java 21+, Paper 1.21.10+
- Setup: Drop JAR into plugins/, restart server, configure chest location
- Migration: Automatic upgrade from previous versions with backup creation
Dependencies
- Paper API (server-provided)
- Kotlin Stdlib 2.1.0, Jackson 2.15.2 (bundled in JAR)
评论 0
登录后参与评分
还没有评论,来抢沙发吧