DeathBukkit
下载 v1.0.1
概述
DeathBukkit 允许玩家在死亡后保留物品,以便进行恢复。具体而言,当启用了死亡宝箱/告示牌功能时(见下方的“使用”部分),玩家死亡的位置会生成一个宝箱,其中包含该玩家死亡前背包中的物品(此功能高度可配置)。同时还会生成一个告示牌(同样可配置),标明宝箱的所有者以及其死亡的时间和日期。右键点击该告示牌即可自动取回宝箱内的物品并销毁宝箱。
虽然已有其他几种“死亡宝箱”插件存在,但它们均已过时或停止维护。本插件旨在取代这些旧插件。
服务器管理员可以轻松修改配置文件,自定义以下计时规则:
宝箱在 X 分钟内仅对已故玩家本人不可访问。宝箱将在 Y 分钟后自动消失。
更新日志
DeathBukkit v1.0.1 是一次重大更新。它添加了多个命令、多种宝箱类型、大量错误修复以及更完善的权限系统。这是经过大量努力开发的成果,包含超过 1,409 行新增代码。
DeathBukkit v0.3.0 重新添加了使宝箱永久存在(无过期时间)的功能。它还修复了在点击告示牌且玩家背包已满时,宝箱“自动过期”的问题。
DeathBukkit v0.2.1 修复了一个潜在的 TileEntity CCE(并发冲突异常)问题。
使用
配置
只需将插件放入你的 plugins 目录,下次启动服务器时它会自动为你生成配置文件。
插件配置文件中的两个选项不言自明(解锁前的秒数和过期前的秒数),默认值为:
- unlockAfter: 0
- expireAfter: 0
零值表示宝箱应立即解锁/过期;负值表示宝箱永远不会解锁/过期。任何其他数值均代表以秒为单位的时间。
类型
DeathBukkit 使用基于类型的系统以实现更高的可配置性。可以针对每个玩家配置宝箱类型,以定义玩家死亡时的行为。你可以通过给予玩家 "deathbukkit.type.<类型名称>" 权限来设置玩家的宝箱类型(例如,要为某玩家设置“墓碑”类型,应赋予其 "deathbukkit.type.grave" 权限)。如果未为特定玩家设置任何宝箱类型,则该玩家死亡时不会为其生成宝箱。
目前存在三种不同的死亡宝箱类型,如下所示。此列表的顺序很重要。如果玩家设置了多种宝箱类型,DeathBukkit 将忽略除列表中排在第一位的类型之外的所有类型。
| 名称 | 描述 | 图片 |
| grave | 在死亡地点生成一个告示牌,包含关于玩家死亡的信息,包括死亡时间。右键点击告示牌即可取回物品。 | 查看 |
| doublechest | 生成两个宝箱,容纳玩家背包的全部内容。位于死亡地点,并附带一个类似“墓碑”类型的告示牌。 | 查看 |
| singlechest | 生成单个宝箱,尽可能多地容纳玩家背包中的物品。多余物品会掉落在地上。位于死亡地点,并附带一个类似“墓碑”类型的告示牌。 | 查看 |
命令
请注意:命令也可以使用别名 /deathbukkit 代替 /db。
| 名称 | 描述 |
| /db | 显示你的宝箱数量。 |
| /db loc | “/db loc 1”的别名。 |
| /db loc <num> | 显示第 <num> 个宝箱的位置。 |
| /db tp | “/db tp 1”的别名。 |
| /db tp <num> | 传送至第 <num> 个宝箱处。 |
| /db reload | 重新加载配置文件。 |
权限
请注意:通配符 * 在权限节点中是有效的(例如,“deathbukkit.commands.*” 授予所有以 “deathbukkit.commands.” 开头的权限的访问权)。
| 名称 | 描述 |
| deathbukkit.command.status | 允许使用 "/deathbukkit" |
| deathbukkit.command.loc.first | 允许使用 "/deathbukkit loc" |
| deathbukkit.command.loc.any | 允许使用 "/deathbukkit loc <num>" |
| deathbukkit.command.tp.first | 允许使用 "/deathbukkit tp" |
| deathbukkit.command.tp.any | 允许使用 "/deathbukkit tp <num>" |
| deathbukkit.command.reload | 允许使用 "/deathbukkit reload" |
| deathbukkit.type.grave | 应为该玩家创建“墓碑”风格的 DeathBukkit 宝箱 |
| deathbukkit.type.doublechest | 应为该玩家创建“双箱”风格的 DeathBukkit 箱子 |
| deathbukkit.type.singlechest | 应为该玩家创建“单箱”风格的 DeathBukkit 箱子 |
媒体
作者:VariationVault
<p>
作者:luigi_vampa
下载
最新插件构建版本可在此下载。
最新更新
- 修复了配置解析问题
- 修复了配置加载问题
- 添加了死亡告示牌
- 修复了盔甲加载问题
- 修复了严重的箱子库存读取错误
- 修复了潜在的 TileEntity CCE 问题
- 重新添加了使箱子永久存在(无过期时间)的功能
- 阻止箱子在点击时“自动过期”
- 添加了 /db、/db loc 和 /db tp 命令
- 添加了箱子类型权限
- 添加了“坟墓”箱子类型
- 添加了“单个”箱子类型
- 改进了代码模块化
- 修复了配置解析错误(当 expireAfter 为有限值时,无法将 unlockAfter 设置为无限)
- 整体代码优化与清理
计划功能
如何提供帮助?
该插件由我利用业余时间独立开发,因此:
- 如果您是开发者并愿意为本项目或我的其他项目做出贡献,请私信我或发送邮件至 escortkeel@live.com。
- 如果您不是开发者但仍想以某种方式做出贡献,请考虑捐赠。我们非常珍视并感谢您的捐赠。
关于
开发者:Keeley Hoek (escortkeel)
DeathBukkit
Download v1.0.1
General
DeathBukkit allows players items' to be preserved after death, so that they can be recovered. Specifically, when a player dies with death chests/signs enabled (see the "Use" section below), a chest will be created at the death point, containing the items which were in the inventory of the player prior to being dead (this is highly configurable). A sign will also be created (again, configurable), indicating who the owner of the chest is, as well as the time and date when they died. Right-clicking on this sign will automatically recover the chest's contents, and destroy the chest.
While several other "death chest" plugins do already exist, they are all either out-of-date or abandoned. This plugin is intends to supersede those plugins.
A server owner could easily change the configuration file and customize timings such that:
A chest will be inaccessible by only the dead player for X minutes. A chest will break after Y minutes.
News
DeathBukkit v1.0.1 is a huge update. It adds multiple commands, different chest types, many bugfixes and better permissions system. It was the product of a lot of effort and consists of more than 1,409 new lines of code.
DeathBukkit v0.3.0 re-adds the ability to make chests exist of an infinite amount of time (no expiry). It also stops chests from "auto-expiring" when the sign is clicked and the player's inventory is filled.
DeathBukkit v0.2.1 fixes a potential TileEntity CCE.
Use
Configuration
Just drop the plugin in your plugins directory and next time the server is run it will automatically generate it's config file for you.
The 2 options in the plugin config file are self explanatory (seconds until unlock and seconds to expiration) and the defaults are:
- unlockAfter: 0
- expireAfter: 0
A value of zero indicates that the chest should unlock/expire immediately and a value less than zero indicates that the chest should never unlock/expire. Any other value is a time in seconds.
Types
DeathBukkit uses a type-based system for extra configurability. Chest types can be configured per player and define what happens when a player dies. You set a player's chest type by giving them the permission "deathbukkit.type.<name of type>" (e.g. to the set "grave" type a player should be given the "deathbukkit.type.grave" permission). If no chest type is set for a particular player, that player will not have a chest created for them.
Currently, three different death chest types exist, and they are listed below. The order of this list matters. If a player has more than one chest type set, DeathBukkit will ignore all but the type that appears first on this list.
| Name | Description | Image |
| grave | Creates a sign at the place of death containing information about the player's death including time of day. By right-clicking the sign, items can be retrieved. | View |
| doublechest | Creates two chests containig the entire contents of the player's inventory. It is located at their place of death and also includes a sign, similar to "grave". | View |
| singlechest | Creates a single chests containig as much of the player's inventory that can fit. Extra items are dropped on the ground. It is located at their place of death and also includes a sign, similar to "grave". | View |
Commands
Please Note: Commands may also be prefixed with the alias /deathbukkit instead of /db.
| Name | Description |
| /db | Displays your number of chests. |
| /db loc | Alias for "/db loc 1". |
| /db loc <num> | Displays chest <num>'s location. |
| /db tp | Alias for "/db tp 1". |
| /db tp <num> | Teleports you to chest <num>. |
| /db reload | Reloads the config file. |
Permissions
Please Note: Wildcard *s are valid in permission nodes (e.g. "deathbukkit.commands.*" grants access to all permissions beginning with "deathbukkit.commands.").
| Name | Description |
| deathbukkit.command.status | Permits "/deathbukkit" |
| deathbukkit.command.loc.first | Permits "/deathbukkit loc" |
| deathbukkit.command.loc.any | Permits "/deathbukkit loc <num>" |
| deathbukkit.command.tp.first | Permits "/deathbukkit tp" |
| deathbukkit.command.tp.any | Permits "/deathbukkit tp <num>" |
| deathbukkit.command.reload | Permits "/deathbukkit reload" |
| deathbukkit.type.grave | "Grave"-style DeathBukkit chests should be created for this player |
| deathbukkit.type.doublechest | "Double chest"-style DeathBukkit chests should be created for this player |
| deathbukkit.type.singlechest | "Single chest"-style DeathBukkit chests should be created for this player |
Media
<p>
By: VariationVault
<p>
By: luigi_vampa
Download
The latest plugin build can be downloaded here.
Latest Changes
- Fixed config parsing
- Fixed config loading
- Added death sign
- Fixed armor loading
- Fixed serious chest inventory reading bug
- Fixed potential TileEntity CCE
- Re-added the ability to make chests exist of an infinite amount of time (no expiry)
- Stops chests from "auto-expiring" on click
- Added /db, /db loc and /db tp commands
- Added chest type permissions
- Added "grave" chest type
- Added "single" chest type
- Improved code modularization
- Fixed config parsing bug (can't set unlockAfter to infinite when expireAfter is finite
- Overall better code and code cleanup
Planned Features
- More customizable options - Feel free to suggest anything!
How Can I Help?
This plugin is developed solely by me in my free time so:
- If you are a developer would like to contribute to this project, or any of my other projects, please PM me or email me at escortkeel@live.com.
- If you are a not developer but would still like to contribute somehow, please consider donating. Donations are highly valued and much appreciated.
About
Developer: Keeley Hoek (escortkeel)
评论 0
登录后参与评分
还没有评论,来抢沙发吧