VitalStrike
VitalStrike 让 Paper 服务器上的战斗更易于阅读且更具回报感。命中时会显示浮动伤害数字,怪物和玩家头顶会出现生命条,连续命中会构建带有等级和伤害加成的连击系统。击杀可获得 RPG 风格的经验和等级。致命伤害会将玩家击倒而非直接杀死,队友可以将其复活。
所有功能均可在 config.yml 中关闭或重新设置样式。
功能
- 伤害数字: 每次命中显示浮动文字,根据伤害类型进行样式化,快速命中时合并显示,治疗为绿色。
- 生命条: 在你击中或治疗的任何目标上方显示当前和最大生命值。
- 连击系统: 连续命中可获得 D 到 SSS 的等级、伤害加成以及 streak 全息图。
- 击杀与等级: 击杀时显示“SLAIN”标记,经验值基于受害者的最大生命值计算,并保存等级进度。
- 击倒机制: 致命伤害会使玩家倒地,队友可以将其复活。
- 奖励: 在累计伤害里程碑处获得物品和经验值。
- 统计数据和排行榜: 记录伤害、命中次数、最佳连击、击杀数和等级。
- 世界控制: 可按世界或维度禁用,并按维度缩放伤害。
- 轻量级服务端: 仅显示实体,共用一个任务,崩溃后不留残留数据。
所有内容均可配置,并可在 config.yml 中关闭。按组的伤害样式通过权限设置。
要求
- Java 25 或更高版本
- Paper 26.1 或更高版本,或 Paper 分支。不支持 Spigot 和 Bukkit。
安装
- 从 Releases 页面 下载最新的 JAR 文件。
- 将其放入服务器的
plugins 文件夹中。
- 启动服务器。这将创建
plugins/VitalStrike/config.yml。
- 编辑配置文件,然后运行
/vs reload。
命令
命令为 /vitalstrike,简写为 /vs。短名称包括:top、holo、give、pack。旧名称(leaderboard、hologram、vitalawakening、resourcepack、lb、va、rp)仍然有效。
| Command |
Permission |
What it does |
/vs help [section] |
vitalstrike.use |
显示帮助菜单。 |
/vs toggle [on/off] |
vitalstrike.toggle |
开启或关闭你自己的指示器。 |
/vs holo [on/off] |
vitalstrike.hologram |
开启或关闭你的连击全息图。 |
/vs stats [player] |
vitalstrike.stats |
显示等级、击杀数和战斗统计数据。 |
/vs top [type] |
vitalstrike.leaderboard |
显示 damage、combo 或 average 排行榜。 |
/vs pack |
vitalstrike.resourcepack |
加载可选的资源包。 |
/vs reload |
vitalstrike.reload |
重新加载配置并清除浮动文字。 |
/vs clear |
vitalstrike.clear |
移除所有浮动文字,包括散落的文字。 |
/vs revive <player> |
vitalstrike.revive |
复活倒地的玩家。 |
/vs give [n] [p] |
vitalstrike.give |
给予 Vital Awakening 物品。 |
/vs perm <action> <player> |
vitalstrike.admin.permissions |
管理存储的组权限。 |
/vs config [apply <code>] |
vitalstrike.admin.config |
在你的浏览器中编辑配置(Web 编辑器)。 |
管理员权限(reload、clear、give、revive、admin.permissions)默认赋予操作员。vitalstrike.admin 授予所有这些权限。
要给予玩家来自 group-damage-formats 的伤害样式,请授予 vitalstrike.group.<name>。
配置
所有内容都位于 plugins/VitalStrike/config.yml 中,该文件包含注释。主要部分如下:
| Section |
Controls |
display |
伤害数字持续时间、位置、动画和合并方式。 |
simple-damage-formats |
每种伤害类型的文本。 |
group-damage-formats |
不同权限组的样式。 |
damage-type-sounds |
每种伤害类型播放的声音。 |
health-bar |
生命条长度、高度、持续时间和文本。 |
combo |
重置时间、衰减、伤害乘数、等级、全息图。 |
kill-indicator and levels |
击杀标记文本、经验速率、等级曲线和升级效果。 |
knockdown-system |
倒地时间、倒地生命值、复活时间和消息。 |
rewards |
伤害里程碑及其奖励内容。 |
world-settings |
禁用的世界和按维度缩放的伤害。 |
文本使用 MiniMessage,同时也支持 & 颜色代码。
更多指南:网站 和 JavaDoc。
从源代码构建
你不需要安装 JDK。Gradle Wrapper 会自动为你下载 Java 25。
git clone https://github.com/Stawa/VitalStrike.git
cd VitalStrike
./gradlew build
生成的 JAR 文件位于 build/libs/ 目录下。scripts/ 目录中的脚本执行相同的构建操作并输出 JAR 文件名:Linux 和 macOS 上使用 scripts/build.sh,Windows 上使用 scripts/build.bat。
支持
VitalStrike 由单人维护,因此回复可能较慢,但欢迎提交错误报告和建议。
许可证
GNU General Public License v3.0。详见 LICENSE。
VitalStrike
VitalStrike makes combat on a Paper server easier to read and more rewarding. Hits show floating damage numbers, mobs and players get a health bar, and chaining hits builds a combo with ranks and a damage bonus. Kills earn RPG-style XP and levels. Lethal damage knocks a player down instead of killing them, and a teammate can revive them.
Every feature can be turned off or restyled in config.yml.
Features
- Damage numbers: floating text per hit, styled by damage type, merged on rapid hits, green for heals.
- Health bars: current and max health above anything you hit or heal.
- Combos: chain hits for ranks D to SSS, a damage bonus, and a streak hologram.
- Kills and levels: a "SLAIN" marker on kills, XP from the victim's max health, saved levels.
- Knockdown: lethal damage downs a player, and teammates can revive them.
- Rewards: items and XP at lifetime-damage milestones.
- Stats and leaderboards: damage, hits, best combo, kills and level.
- World control: disable per world or dimension, and scale damage per dimension.
- Light on the server: display entities, one shared task, nothing left behind after a crash.
Everything is configurable and can be switched off in config.yml. Per-group damage styles are set with permissions.
Requirements
- Java 25 or newer
- Paper 26.1 or newer, or a Paper fork. Spigot and Bukkit are not supported.
Installation
- Download the latest JAR from the Releases page.
- Put it in your server's
plugins folder.
- Start the server. This creates
plugins/VitalStrike/config.yml.
- Edit the config, then run
/vs reload.
Commands
The command is /vitalstrike, or /vs for short. Short names: top, holo, give, pack. The older names (leaderboard, hologram, vitalawakening, resourcepack, lb, va, rp) still work.
| Command |
Permission |
What it does |
/vs help [section] |
vitalstrike.use |
Shows the help menu. |
/vs toggle [on/off] |
vitalstrike.toggle |
Turns your own indicators on or off. |
/vs holo [on/off] |
vitalstrike.hologram |
Turns your combo hologram on or off. |
/vs stats [player] |
vitalstrike.stats |
Shows level, kills and combat stats. |
/vs top [type] |
vitalstrike.leaderboard |
Shows the damage, combo or average top. |
/vs pack |
vitalstrike.resourcepack |
Loads the optional resource pack. |
/vs reload |
vitalstrike.reload |
Reloads the config and clears floating text. |
/vs clear |
vitalstrike.clear |
Removes all floating text, including strays. |
/vs revive <player> |
vitalstrike.revive |
Revives a downed player. |
/vs give [n] [p] |
vitalstrike.give |
Gives Vital Awakening items. |
/vs perm <action> <player> |
vitalstrike.admin.permissions |
Manages stored group permissions. |
/vs config [apply <code>] |
vitalstrike.admin.config |
Edits the config in your browser (web editor). |
Admin permissions (reload, clear, give, revive, admin.permissions) default to operators. vitalstrike.admin grants all of them.
To give a player a damage style from group-damage-formats, grant vitalstrike.group.<name>.
Configuration
Everything lives in plugins/VitalStrike/config.yml, and the file is commented. The main sections are:
| Section |
Controls |
display |
Damage number duration, position, animation and merging. |
simple-damage-formats |
Text for each damage type. |
group-damage-formats |
Different styles per permission group. |
damage-type-sounds |
Sound played for each damage type. |
health-bar |
Bar length, height, duration and text. |
combo |
Reset time, decay, damage multipliers, ranks, hologram. |
kill-indicator and levels |
Kill marker text, XP rate, level curve and level-up effects. |
knockdown-system |
Down time, downed health, revive time and messages. |
rewards |
Damage milestones and what they pay. |
world-settings |
Disabled worlds and per-dimension damage scaling. |
Text uses MiniMessage, and & color codes also work.
More guides: website and JavaDoc.
Building from source
You don't need a JDK installed. The Gradle wrapper downloads Java 25 for you.
git clone https://github.com/Stawa/VitalStrike.git
cd VitalStrike
./gradlew build
The JAR ends up in build/libs/. The scripts in scripts/ do the same build and print the JAR name: scripts/build.sh on Linux and macOS, scripts/build.bat on Windows.
Support
VitalStrike is maintained by one person, so replies can take a while, but bug reports and ideas are welcome.
- Bugs and feature requests: GitHub Issues
- Questions and chat: Discord
- Support development: Buy Me a Coffee
License
GNU General Public License v3.0. See LICENSE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧