PlayerCorpses
PlayerCorpses 是一款 Minecraft 插件,允许你创建尸体(corpse),为玩家带来沉浸式的互动体验。当玩家死亡时,会在原地留下一个代表其尸体的 NPC,玩家可以与之交互以取回物品。
功能特性
- 玩家尸体:当玩家死亡时,会在死亡地点生成一个尸体 NPC,保留该玩家的背包物品。
- NPC 交互:玩家可以与尸体交互,访问其中存储的物品。
- 破坏尸体:玩家可以破坏尸体 NPC,将其中的物品掉落至尸体所在位置。
- 可自定义的语言支持:完全可配置的语言系统,允许翻译和自定义游戏内消息。
- NPC 集成:与 FancyNPCs 插件配合使用,创建详细且具交互性的 NPC 来代表阵亡玩家。
- 可自定义菜单:插件提供可自定义的菜单,用于与尸体及其物品进行交互。
安装说明
- 下载插件:下载最新版本的 PlayerCorpses,并将其放入服务器的
plugins 目录中。
- 安装 FancyNPCs 插件:若要启用 NPC 功能,请下载并安装 FancyNPCs 插件。
- 配置语言文件:如果你希望使用除英语或俄语以外的其他语言,请配置位于
locale 文件夹中的插件语言文件。
- 重启服务器:完成安装和配置后,重启服务器以应用更改。
配置
PlayerCorpses 提供了可配置的消息和设置,让你可以根据服务器需求定制插件行为。
- 语言配置:该插件支持多种语言。语言文件可在
locale 文件夹中找到。
- 自定义消息:插件使用 MiniMessage 格式进行文本格式化。有关如何格式化消息的更多信息,请参阅 MiniMessage 文档。
命令
目前,本插件未提供任何命令。交互通过在与尸体 NPC 交互时生成的 GUI 菜单完成。但随着插件的发展,未来可能会添加更多命令,例如重载插件、为尸体 NPC 设置皮肤等。
使用方法
与尸体交互
- 当玩家死亡时,会在死亡地点生成一个尸体 NPC。
- 玩家可以点击尸体 NPC 打开菜单,选择破坏尸体并拾取物品。
技术支持
如果遇到任何问题或有疑问,欢迎通过 Discord 联系插件开发者。
更新日志
1.1.0
- 尸体所有权系统:尸体现在与死亡玩家绑定。默认情况下,只有所有者可以破坏自己的尸体。
- 可配置的访问权限:在
config.yml 中添加了 allowOthersBreak 选项,允许或限制其他玩家破坏和掠夺尸体。
- 全局尸体数据存储:尸体数据现在采用全局存储而非按玩家单独存储,修复了其他玩家尝试与尸体交互时出现的错误。
- 玩家皮肤支持:尸体 NPC 现在会自动使用死亡玩家的皮肤。
- 基于系统的计时处理:死亡时间现在使用系统 UTC 时间戳保存,而非硬编码的时区偏移量。
- 稳定性改进:修复了非所有者尝试破坏尸体时的控制台报错问题。
1.0.0 - 首次发布
许可证
本插件按“原样”提供,不提供任何担保。你可以在以下 许可证 条款下使用它。
PlayerCorpses
PlayerCorpses is a plugin for Minecraft that allows you to create corpses, adding an immersive and interactive experience for players. When a player dies, they leave behind an NPC representing their corpse that can be interacted with to retreive items.
Features
- Player Corpses: When a player dies, a corpse NPC is created at the death location, retaining the player's inventory.
- Npc Interaction: Players can interact with corpses to access the items stored in their inventory.
- Break Corpses: Players can break a corpse NPC, dropping its contents at the location of the corpse.
- Customizable Locale Support: Fully configurable locale system to allow translation and customization of in-game messages.
- NPC Integration: Works with the FancyNPCs plugin to create detailed and interactive NPCs representing fallen players.
- Customizable Menus: The plugin features customizable menus for interacting with corpses and their items.
Installation
- Download the plugin: Download the latest version of PlayerCorpses and place it in the
plugins directory of your server.
- Install FancyNPCs Plugin: To enable NPC functionality, download and install the FancyNPCs plugin.
- Configure Locale: If you wish to use a language other than English or Russian, configure the plugin’s locale files found in the
locale folder.
- Restart your server: After installation and configuration, restart your server to apply the changes.
Configuration
PlayerCorpses comes with configurable messages and settings to allow you to tailor the plugin to your server's needs.
- Locale Configuration: The plugin supports multiple languages. Locale files can be found in the
locale folder.
- Custom Messages: The plugin uses the MiniMessage format for text formatting. You can find more information on how to format messages in the MiniMessage documentation.
Commands
Currently, there are no commands provided by this plugin. Interaction is done through the GUI menus generated when interacting with a corpse NPC. However, as the plugin evolves, additional commands may be added in the future, such as reloading the plugin, setting skins for corpse NPCs, and more.
Usage
Interacting with Corpses
- When a player dies, a corpse NPC will be created at the location of death.
- Players can click on the corpse NPC to open a menu with the option to break the corpse and pick up items.
Support
If you encounter any issues or have questions, feel free to reach out to the plugin developers via Discord.
Changelog
1.1.0
- Corpse Ownership System: Corpses are now linked to the player who died. Only the owner can break their corpse by default.
- Configurable Access: Added
allowOthersBreak option in config.yml to allow or restrict other players from breaking and looting corpses.
- Global Corpse Storage: Corpse data is now stored globally instead of per-player, fixing errors when other players attempt to interact with a corpse.
- Player Skin Support: Corpse NPCs now automatically use the skin of the player who died.
- System-based Time Handling: Death time is now saved using system UTC timestamp instead of a hardcoded timezone offset.
- Improved Stability: Fixed console errors when non-owners attempted to break a corpse.
1.0.0 - First Release
- Initial release of PlayerCorpses.
License
This plugin is provided "as-is", without any warranty. You may use it under the terms of the license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧