在操作栏中显示玩家和生物的生命值,当你攻击它们或注视它们时。
支持的版本
一个 jar 文件适用于 Spigot 1.8 到 26.3,以及 Paper、Purpur 和 Folia 等分支。它支持 Java 8 或更高版本,因此请使用你的服务器已经运行的 Java 版本。
ActionHealth 不检查服务器版本,而是检查服务器具备哪些功能。新的 Minecraft 版本通常不需要更新。每个版本都在 27 个 Spigot 版本、5 个 Paper 版本和 2 个 Folia 版本上进行了测试,并使用了读取操作栏的机器人进行测试。测试原理。
特性
- 命中时显示生命值。 当你击中玩家或生物时,其生命值会显示在你的操作栏中。箭矢和其他投射物也算在内。
- 注视时显示生命值。 当你注视实体时,其生命值会显示。在 1.13.2+ 版本中,碰撞箱的任何部分都算作目标,因此大型生物和 ModelEngine 模型也能正常工作。
- 样式。 可以显示心形、条形、线条或数字。颜色可以使用
& 代码或十六进制颜色(如 fdfc4)。1.16 之前的服务器会显示最接近的传统颜色。
- 吸收伤害。 吸收生命值会作为额外的图标显示在生命值图标之后,或者以
{absorption} 形式显示为数字。
- 操作消息。 你可以看到之前战斗过的敌人喝药水、吃金苹果或使用末影珍珠的时刻。此功能默认关闭。
- 切换开关。 玩家可以自行关闭 ActionHealth。即使他们重新登录,选择也会保留。
- 过滤器。 可以在世界或 WorldGuard 区域中关闭 ActionHealth,也可以针对玩家、生物、NPC、隐形实体和旁观者进行过滤。可以使用黑名单或白名单来指定名称。
- 翻译。 可以在配置文件中重命名生物,也可以使用社区提供的 12 种语言的翻译之一。
- 配置文件更新。 当更新添加新选项时,ActionHealth 会将这些选项及其注释添加到
config.yml 文件的末尾,其余部分保持不变。
安装
- 将 jar 文件放入服务器的
plugins 文件夹中。
- 重启服务器。
- 编辑
plugins/ActionHealth/config.yml,然后运行 /actionhealth reload。
命令与权限
| 命令或权限 |
功能 |
/actionhealth reload |
重新加载配置文件。需要 ActionHealth.Reload 权限,默认情况下只有操作员拥有该权限。 |
/actionhealth toggle |
开启或关闭你自己的生命值显示。需要 ActionHealth.Toggle 权限,默认情况下所有玩家都拥有该权限。 |
ActionHealth.Health |
允许玩家查看生命值消息。仅在 Use Permissions 设置为 true 时生效。 |
占位符
| 占位符 |
显示内容 |
{name} |
玩家或生物的名称 |
{displayname} |
显示名称或自定义名称 |
{health} 和 {maxhealth} |
当前生命值和最大生命值 |
{percenthealth} |
剩余生命值百分比 |
{absorption} |
吸收生命值 |
{usestyle} |
配置文件中定义的生命值图标 |
{opponentlastdamage} |
目标受到的最后一次伤害 |
PlaceholderAPI 占位符可在消息和生命值图标中使用。
可选插件
ActionHealth 不需要其他插件。当安装了 WorldGuard、PlaceholderAPI、MythicMobs、ModelEngine 和 mcMMO 时,它会使用这些插件的功能。README 列出了每个插件的具体作用。
链接
Shows the health of players and mobs in the action bar, when you hit them or look at them.
Supported versions
One jar runs on Spigot 1.8 to 26.3, and on forks such as Paper, Purpur and Folia. It runs on Java 8 or newer, so use the Java version that your server already runs.
ActionHealth does not check the server version. It checks which features the server has. New Minecraft versions should not need an update. Each release is tested on 27 Spigot versions, 5 Paper versions and 2 Folia versions, with bots that read the action bar. How the tests work.
Features
- Health on hit. When you hit a player or a mob, its health shows in your action bar. Arrows and other projectiles count too.
- Health on look. When you look at an entity, its health shows. On 1.13.2+, any part of the hitbox counts, so large mobs and ModelEngine models work.
- Styles. Show hearts, bars, lines or numbers. Colors can be
& codes or hex colors such as fdfc4. Servers before 1.16 show the closest legacy color.
- Absorption. Absorption health shows as extra icons after the health icons, or as a number with
{absorption}.
- Action messages. See when an enemy that you fought drinks a potion, eats a golden apple or uses an ender pearl. This is off by default.
- Toggle. Players can turn ActionHealth off for themselves. The choice can stay after they log out.
- Filters. Turn ActionHealth off in worlds or WorldGuard regions, or for players, mobs, NPCs, invisible entities and spectators. Use a blacklist or a whitelist of names.
- Translations. Rename mobs in the config, or use one of the community translations for 12 languages.
- Config updates. When an update adds options, ActionHealth adds them to the end of your
config.yml, with their comments. The rest of the file stays the same.
Install
- Put the jar in the
plugins folder of your server.
- Restart the server.
- Edit
plugins/ActionHealth/config.yml, then run /actionhealth reload.
Commands and permissions
| Command or permission |
What it does |
/actionhealth reload |
Reloads the config. Needs ActionHealth.Reload, which operators have by default. |
/actionhealth toggle |
Turns the health display on or off for you. Needs ActionHealth.Toggle, which all players have by default. |
ActionHealth.Health |
Lets a player see health messages. Applies only when Use Permissions is true. |
Placeholders
| Placeholder |
Shows |
{name} |
The name of the player or mob |
{displayname} |
The display name or custom name |
{health} and {maxhealth} |
Current and maximum health |
{percenthealth} |
Health left as a percentage |
{absorption} |
Absorption health |
{usestyle} |
The health icons from the config |
{opponentlastdamage} |
The last damage that the target took |
PlaceholderAPI placeholders work in the message and in the health icons.
Optional plugins
ActionHealth needs no other plugins. It uses WorldGuard, PlaceholderAPI, MythicMobs, ModelEngine and mcMMO when they are installed. The README lists what each one does.
Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧