Cenotaph - 亡者之箱 插件
版本:3.0.1
插件依赖
Lockette(可选)或 LWC(可选)
Cenotaph 是 Drakia 创作的杰出模组 Tombstone 的一个分支。我决定接手它并添加一些我想要的功能(以及论坛上一些用户请求的功能)。
下载、源代码及错误报告/功能建议
Github:
什么是 Cenotaph?
Cenotaph 是一座为死者建立的纪念碑,这些死者要么葬于他处,要么其遗体无法用于安葬。仔细想想,这完全符合 Minecraft 的情况——因为你已经重生,所以没有尸体。;)
功能
当你的玩家死亡时,根据你的设置,他们的物品将被放入“亡者之箱”中妥善保管。你可以要求玩家随时随身携带箱子及其对应的告示牌,或者仅仅是在死亡时生成箱子。你也可以使用 LWC3 或 Lockette 来保护这些箱子。
详细功能列表
- 如果玩家在死亡时携带了箱子,则放置该箱子并尽可能多地装入其背包中的物品
- 如果允许且玩家携带了两个箱子,则会生成一个大箱子以容纳所有库存物品
- 可以为特定群组/玩家提供无需随身携带的免费箱子
- 任何无法放入箱子的物品仍会掉落至地面!
- 支持 Permissions 插件,如果未安装则默认允许所有人使用基础 cenotaph 功能
- 如果已安装,支持 LWC 对箱子和告示牌的防护
- 如果已安装,支持 Lockette 对箱子的防护
- 可配置 LWC 解除防护的超时时间
- 可配置 Cenotaph 被销毁的超时时间,即使在未加载区块中也有效
- 支持 Quickloot,右键点击 Cenotaph 上的告示牌即可拾取其中所有物品(仅限你自己的箱子!)
- 在箱子上方放置一个告示牌,标明玩家姓名和死亡时间
- 可以将指南针指向你的 Cenotaph
- 可自定义 Cenotaph 上的告示牌消息
- 用于管理的管理员命令
即将推出
查看即将推出的内容,报告错误,并在 Github 项目上添加你自己的需求!
1.3: 初始公开发布,支持 Lockette
1.4: 通用功能和错误修复,第一轮
1.5: 插件组织优化
1.6: 附加功能
2.0: 经过5个月的沉寂后复活,更新以适配 Release 版本
2.1: 高度请求的功能
2.2 (3.0): 重大插件和消息清理
3.1: 经济系统集成,Towny 集成
3.2: 更多功能请求?
配置
在 Github 上查看默认配置文件以获取注释和说明。
配置注意事项
- 如果你打算给玩家免费的箱子/告示牌,但不希望他们能将其作为额外物品取回,请在 Cenotaph 配置文件中设置 noDestroy 选项。
- 如果你设置了 noDestroy 选项,强烈建议你设置 Cenotaph 移除的超时时间,因为即使禁用了 LWC,除非通过快速拾取或拥有权限的管理员破坏,否则箱子将无法以任何方式被摧毁。
- 启用 noDestroy 后,如果玩家在死亡时没有告示牌,那么他们的箱子将不可摧毁,直到被 Cenotaph 本身移除。
- 不建议在不使用 destroyQuickLoot 选项的情况下使用 noDestroy 选项
权限
cenotaph.use - 允许玩家/群组使用该 cenotaph 插件
cenotaph.freechest - 允许玩家获得一个箱子,无论他们是否携带了箱子
cenotaph.large - 如果玩家携带两个箱子且其中一个能装下物品,则允许玩家生成大箱子
cenotaph.lwc - 如果启用了 LWC,则保护放置的箱子
cenotaph.lockette - 如果启用了 Lockette,则保护放置的箱子
cenotaph.sign - 玩家是否在 Cenotaph 箱子上获得告示牌
cenotaph.freesign - 允许玩家获得一个免费告示牌,无论他们是否携带了告示牌。
cenotaph.freelockettesign - 同上
cenotaph.quickloot - 是否允许玩家/群组通过右键点击 Cenotaph 告示牌进行快速拾取。
cenotaph.cmd.cenotaphlist - 允许此用户使用 /cenlist
cenotaph.cmd.cenotaphfind - 允许此用户使用 /cenfind
cenotaph.cmd.cenotaphtime - 允许此用户使用 /centime
cenotaph.cmd.cenotaphreset - 允许此用户使用 /cenreset
cenotaph.admin - 允许此用户物理摧毁他人的 Cenotaph。这也是使用其他管理员命令的前提条件
cenotaph.admin.list - 允许此用户查看所有 Cenotaph
cenotaph.admin.find - 允许此用户查找任意 Cenotaph
cenotaph.admin.time - 允许此用户检查任意 Cenotaph 的剩余时间
cenotaph.admin.remove - 允许此用户摧毁任意 Cenotaph
致谢
@Drakia: Cenotaph 最初名为 Tombstone,由 Drakia (TheDgtl) 创作。非常感谢他为原始插件所做的辛勤工作。
@Acru: 同样感谢 Lockette 的开发者 Acru。在我笨拙地学习 Java 的过程中,他帮助实现 Lockette 集成的协助至关重要。:)
命令
/cenlist - 列出你所有的 Cenotaph
/cenfind <index> - 指示从你当前位置到纪念碑的方向,并将指南针设置为指向它
/ceninfo <index> - 告诉你指定纪念碑的保护即将失效或破损之前剩余的时间
/cenreset - 重置指南针以指向重生点
/cenadmin list - 列出所有拥有纪念碑的玩家
/cenadmin list <player> - 列出属于 <player> 的所有纪念碑
/cenadmin find <player> <index> - 显示 <player> 的纪念碑 <index> 的详细信息
/cenadmin remove <player> <index> - 摧毁 <player> 的纪念碑 <index> 并将其内容掉落至地面
/cenadmin info <player> <index>
/cenadmin version - 显示 Cenotaph 当前版本并检查是否有新版本
更新日志
[版本 3.0.1]
- 添加禁用 Dynmap 的选项
- 修复当 Dynmap 未加载/启用时关闭服务器出现的错误
- 在速度和效率方面进行了一些小幅改进
- 当不使用索引号时,find 和 info 命令现在默认指向最后一个(最新的)纪念碑,而不是报错
- 对命令处理器进行了更多清理工作
- 权限更新:.cenotaphtime 和 .admin.time 现在分别改为 .cenotaphinfo 和 .admin.info。旧权限仍将继续有效。
[版本 3.0]
- 大规模代码重构(你看不到变化,但相信我,非常棒)
- 消息系统全面 overhaul。消息更清晰、更简洁且格式更好
- centime 命令现更名为 ceninfo(centime 仍将继续有效)
- 管理员命令现在支持部分匹配或相似的玩家名称,而不再要求完全区分大小写的名称
- Dynmap 集成
[版本 2.1.2]
- 优化了破坏覆盖选项(keepUntilEmpty 和 breakWhenEmpty)
- 为 Beta 1.8 版本的怪物添加了死亡消息(终于……天哪。抱歉,大家。)
- 解决了因缺少或无效的 deathMessage 条目导致的错误(感谢 @ffkhrocks)
[版本 2.1.1]
- 修复从 2.1 之前的版本加载 .db 保存文件的问题(感谢 @Inscrutable)
[版本 2.1]
- 添加了基于等级的时间移除选项
- 增加了携带 Lockette 告示牌的要求(提供免费的告示牌权限)
- 添加了按名称禁用特定世界功能的选项
[版本 2.0]
- 将监听器更新至新的 Bukkit API
- 将配置文件更新至新的 Bukkit API
- 移除了对 Nijikokun 旧版 Permissions 插件的支持
- 更新至最新版的 LWC API
- 添加了 cenadmin reload 命令
(请参阅 README 获取完整更新日志)
Cenotaph - A Dead Man's Chest plugin
Version: 3.0.1
Plugin Dependencies
Lockette (Optional) OR LWC (Optional)
Cenotaph is a fork of the most excellent Tombstone by Drakia. I decided to take it up and add some features I wanted (and that some users on the forums have requested).
Download, Source, and Bug Reports/Feature Suggestions
Github:
What's a Cenotaph?
A Cenotaph is a monument to a dead person who is either buried elsewhere or whose body is not available for burial. If you think about it, it exactly fits the situation - there's no body, since you've respawned ;)
Features
When your players die, depending on how you have things set up, their items will be placed in a Dead Man's Chest for safekeeping. You can require that your players carry around chests and signs of their own at all times, or simply have the chests appear on death. You can also secure the chests with LWC3 or Lockette.
Detailed Feature List
- If the player is carrying a chest when they die, place that chest and fill it with as much of their inventory as possible
- If the player is allowed, and is carrying two chests, a large chest will spawn to catch all of their inventory
- Possible for specific groups/players to be given free chests with no need to carry one with them
- Any items that won't fit in the chest will still drop to the ground!
- Supports the Permissions plugin, will default to allowing everyone to use basic cenotaph if not available
- Supports LWC for chest AND sign protection if it is installed
- Supports Lockette for chest protection if it is installed
- Configurable timeout for LWC unprotection
- Configurable timeout for destruction of cenotaphs, works in unloaded chunks as well
- Quickloot support, right click the sign on a cenotaph to loot all items in it (your chest only!)
- Place a sign on top of the chest stating the players name and time of death
- The ability to point your compass at your cenotaph
- Customizable sign messages on the cenotaph
- Admin commands for management
Coming Soon
See what's coming soon, report bugs, and add your own requests on the Github project!
1.3: Initial public release, Lockette support
1.4: General features and bug fixes, round 1
1.5: Plugin organization
1.6: Additional features
2.0: Brought back from the dead after 5 months of inactivity, updated for Release
2.1: Highly requested features
2.2 (3.0): Major plugin and messaging cleanup
3.1: Economy integration, Towny integration
3.2: More feature requests?
Configuration
See the default config file on Github for annotations and explanations.
Config notes
- If you are going to be giving your players a free chest/sign, but don't want them to be able to retrieve those as extra items, set the noDestroy option in the Cenotaph config file.
- If you do set the noDestroy option, it is highly recommended that you set a timeout for Cenotaph removal, because even once LWC is disabled the chest is still not destroyable by any means other than quicklooting it or an admin with permissions breaking it.
- With noDestroy enabled, if a player dies without a sign, then their chest will be indestructible until it is removed by Cenotaph itself.
- It is not recommended to use the noDestroy option without the destroyQuickLoot option
Permissions
cenotaph.use - Allow the player/group to use the cenotaph plugin
cenotaph.freechest - Allow the player to get a chest whether they are carrying a chest or not
cenotaph.large - Allow the player to spawn a large chest if carrying two chests and if one will fit
cenotaph.lwc - Protect the placed chest if LWC is enabled
cenotaph.lockette - Protect the placed chest if Lockette is enabled
cenotaph.sign - Whether the player gets a sign on their cenotaph chest
cenotaph.freesign - Allow the player to get a free sign whether they are carrying one or not.
cenotaph.freelockettesign - asd
cenotaph.quickloot - Whether to allow a player/group to quickloot by right clicking the cenotaph sign.
cenotaph.cmd.cenotaphlist - Allow this user to use /cenlist
cenotaph.cmd.cenotaphfind - Allow this user to use /cenfind
cenotaph.cmd.cenotaphtime - Allow this user to use /centime
cenotaph.cmd.cenotaphreset - Allow this user to use /cenreset
cenotaph.admin - Allow this user to physically destroy others' cenotaphs. Also a prerequisite for use of the other admin commands
cenotaph.admin.list - Allow this user to see all cenotaphs
cenotaph.admin.find - Allow this user to find any cenotaph
cenotaph.admin.time - Allow this user to check the time left on any cenotaph
cenotaph.admin.remove - Allow this user to destroy any cenotaph
Credits
@Drakia: Cenotaph was originally Tombstone, by Drakia (TheDgtl). Many thanks to him for his hard work on the original plugin.
@Acru: Thanks to Acru, the developer of Lockette, as well. His help getting the Lockette integration working as I stumbled by way though picking up Java was invaluable. :)
Commands
/cenlist - List all your cenotaphs
/cenfind <index> - Gives you a direction from your current location to your cenotaph and sets your compass to point at it
/ceninfo <index> - Tells you how much time is left before the specified cenotaph has its protection remove or it breaks
/cenreset - Reset compass to point to spawn
/cenadmin list - List all players who have cenotaphs spawned
/cenadmin list <player> - List all cenotaphs belonging to <player>
/cenadmin find <player> <index> - Show details on <player>'s cenotaph <index>
/cenadmin remove <player> <index> - Destroys <player>'s cenotaph <index> and drops its contents on the ground
/cenadmin info <player> <index>
/cenadmin version - Show current version of Cenotaph and check for a new version
Changelog
[Version 3.0.1]
- Add option to disable Dynmap
- Fix error on shutdown when Dynmap is not loaded/enabled
- A few minor improvements in speed/efficiency
- When used without an index number, the find and info commands now default to the last (most recent) cenotaph instead of giving an error message
- More cleanup in the command handler
- Permission update: .cenotaphtime and .admin.time are now .cenotaphinfo and .admin.info. The old permissions will continue to work.
[Version 3.0]
- Major code refactoring (you can't see it, but trust me, it's awesome)
- Total messaging overhaul. Messages are clearer, simpler, and better formatted
- centime is now ceninfo (centime will continue to work)
- Admin commands now match on partial or similar player names instead of requiring full case-sensitive name
- Dynmap integration
[Version 2.1.2]
- Optimized break override options (keepUntilEmpty and breakWhenEmpty)
- Add death messages for beta 1.8 monsters (Finally...yikes. Sorry, everyone.)
- Work around an error caused by missing or invalid deathMessage entries (Thanks, @ffkhrocks)
[Version 2.1.1]
- Fix issue loading .db save files from pre-2.1 versions (Thanks, @Inscrutable)
[Version 2.1]
- Added option for level-based time removal
- Added requirement for Lockette sign to be carried in inventory (free sign permission available)
- Added option to disable in specific worlds by name
[Version 2.0]
- Updated listeners to new Bukkit API
- Updated config to new Bukkit API
- Removed support for Nijikokun's old Permissions plugin
- Updated to latest LWC API
- Added cenadmin reload command
(See README for full changelog)
评论 0
登录后参与评分
还没有评论,来抢沙发吧