信息
本插件是以下未活跃开发项目的延续:
该插件通过 Spout 在玩家头顶上方显示一条血条。
用法:
只需将 jar 文件放入你的插件目录,然后可选地编辑配置文件以自定义血条的显示效果。
重要提示
随着我逐渐偏离原始项目,预计会有更多重大更改(尤其是配置方面的更改)。
配置
插件启动时会自动在 HealthBar 文件夹中创建一个 config.yml 文件。
其中包含以下属性:
bar:
# 用于制作血条的字符
character: '|'
# 血条使用的格式。
# 注意:所有颜色代码请使用格式 &<hex>
# 当前可用变量(注意:部分变量有对应的血条形式,但并非全部):
# {health},{health_bar} = 玩家当前生命值
# {max_health} = 玩家最大生命值
# {health_percent} = 玩家当前生命值百分比(不含 % 符号)
# {missing_health},{missing_health_bar} = 玩家最大生命值减去当前生命值
# {lost_health},{lost_health_bar} = 自上次血条更新以来玩家损失的生命值量
# {gained_health},{gained_health_bar} = 自上次血条更新以来玩家获得的生命值量
# {mana},{max_mana},{mana_percent},{missing_mana} {mana_bar},{missing_mana_bar} = 与基于生命值的对应项相同
格式: '&&9[&&a{health_bar}&&b{gained_health_bar}&&6{lost_health_bar}&&c{missing_health_bar}&&9]'
# 控制血条的大小(当前值小于 1.0 的效果尚可,血条可能会在不同生命值水平下被添加/移除——即将修复)
healthScale: 1.0
# 建议将 mana(法力值)的数值设为低于 1.0 - mana/maximum mana 的比例通常大于 health/maximum health
manaScale: 1.0
system:
# 控制是否仅对拥有特定权限的玩家显示血条
usePermissions: false
hideDuringSneak: true
请根据实际情况进行调整。
本插件可与其他修改标题名称的插件配合使用。
权限
若要通过权限进行控制,您必须安装基于权限的插件,并将 config.yml 中的 "usePermissions" 设置为 'true'。
权限节点:
healthbar.cansee - 允许玩家查看其他玩家的 blood bar(血条)。
healthbar.reload - 允许您重新加载配置文件。
依赖项
SpoutCraft - 客户端与服务器端均需安装
可选依赖
Heroes - 如果已安装此插件,则使用其提供的生命值和法力值系统
源码
源代码仓库位于此处:
Information
This plugin is a continuation of this inactive project:
This adds a health bar above player's heads using Spout.
Usage:
Simply place the jar file into your plugin directory then optionally edit the config file to customize the healthbar display.
Important note
Expect more major changes (especially configuration changes) as I diverge more from the original project.
Configuration
On start up the plugin automatically creates a config.yml file in the HealthBar folder.
This contains the following properties:
bar:
# Character used to make the healthbar
character: '|'
# Format used for the healthbar.
# Note: Use the format &&<hex> for all color codes
# Current variables (note: some, but not all, variables have bar forms):
# {health},{health_bar} = the player's current health
# {max_health} = the player's maximum health
# {health_percent} = the player's current health percentage (without % sign)
# {missing_health},{missing_health_bar} = the player's maxhealth - current health
# {lost_health},{lost_health_bar} = the amount of health the player has lost since the last healthbar update
# {gained_health},{gained_health_bar} = the amount of health the player has gained since the last healthbar update
# {mana},{max_mana},{mana_percent},{missing_mana} {mana_bar},{missing_mana_bar} = same as their health-based cousins
format: '&&9[&&a{health_bar}&&b{gained_health_bar}&&6{lost_health_bar}&&c{missing_health_bar}&&9]'
# Controls the size of the healthbar (values under 1.0 work somewhat currently, bars may be added/removed at different levels of health - will be fixed soon)
healthScale: 1.0
# A value under 1.0 is recommended for mana - mana/maximum mana tends to be larger than health/maximum health
manaScale: 1.0
system:
# Controls whether or not to have healthbars only show up for players with a certain permission
usePermissions: false
hideDuringSneak: true
Change accordingly.
This plugin works with other plugins that edit the title name.
Permissions
To use with permissions you must have a permissions based plugin installed and you must have "usePermissions" as 'true' in config.yml.
Nodes:
healthbar.cansee - Allows the player to see other players health bar.
healthbar.reload - Allows you to reload the configuration file.
Requirements
SpoutCraft - Client & Server
Optional
Heroes - Uses this plugin's health and mana systems if installed
Source
The source repository is located here:
评论 0
登录后参与评分
还没有评论,来抢沙发吧