LifeSteal
适用于 Paper 1.21+ 的自定义轻度硬核吸血玩法。
击杀玩家,窃取一颗心。失去所有生命后,将被处以限时封禁。这是一个完整且自包含的吸血游戏模式,包含心之物品、防刷机制和自动封禁管理——无需其他插件。
功能特性
- 击杀窃取心脏 — 每次击杀玩家都会从受害者转移一颗心给击杀者
- 心之物品 — 可将心提取为实体物品,用于交易、出售或稍后兑换
- 限时死亡封禁 — 当心数降至底线时,你将被封禁一段可配置的时间(默认为 1 小时),到期后自动解封
- 防刷冷却 — 在冷却窗口内(默认 30 分钟),你只能从同一玩家身上获得一次心跳,从而堵住明显的刷取漏洞
- 回归时重置为原版心数 — 回归的玩家将以纯净的原版心数重新加入,而不是继承被利用的状态
- 可配置的心数上限 — 可在服务器范围内设置基础、最小和最大心数
- 可选的命令白名单 — 在该模式下限制普通玩家只能使用安全列表中的命令
命令
| 命令 |
描述 |
/life |
显示当前心数和状态 |
/life withdraw <amount> |
将心提取为实体心之物品 |
/life help |
显示命令帮助 |
别名:/hearts、/lifesteal、/ls
管理员
| 命令 |
描述 |
/lifeadmin reload |
重载配置文件 |
/lifeadmin set <player> <amount> |
设置玩家的心数 |
/lifeadmin give <player> <amount> |
给予玩家心数 |
/lifeadmin reset <player> |
将玩家重置为基础心数 |
/lifeadmin view <player> |
查看玩家的当前心数状态 |
/lifeadmin unban <player> |
提前解除死亡封禁 |
别名:/lsadmin、/lsa
权限
| 权限 |
默认值 |
描述 |
lifesteal.use |
true |
使用 /life 并提取心之物品 |
lifesteal.admin |
op |
完整的 LifeSteal 管理权限 |
配置亮点
hearts.base / hearts.min / hearts.max — 起始、底线和天花板心数
anti-farm.enabled / anti-farm.cooldown-minutes — 针对同一受害者的冷却窗口
command-whitelist.enabled / command-whitelist.allowed — 在该模式激活期间,限制普通玩家只能使用安全的命令列表
安装设置
- 将
LifeSteal.jar 放入服务器的 plugins/ 文件夹中。
- 重启服务器。
- 在
config.yml 中设置心数上限和防刷冷却窗口,然后执行 /lifeadmin reload。
要求与兼容性
- 服务器: Paper 1.21.11(基于此 API 版本构建和测试)。
- Java: 21 或更高版本。
- 无需外部依赖。
LifeSteal 是开源软件,采用 MIT 许可证。
LifeSteal
Custom hardcore-lite lifesteal for Paper 1.21+.
Kill a player, steal a heart. Lose all your hearts, serve a timed ban. A complete, self-contained lifesteal gamemode with heart items, anti-farm protection, and automatic ban management — no other plugins required.
Features
- Steal hearts on kill — every player kill transfers a heart from the victim to the killer
- Heart items — withdraw hearts into physical items you can trade, sell, or redeem later
- Timed death bans — hit the heart floor and you're banned for a configurable period (1 hour by default), with automatic unban when it expires
- Anti-farm cooldown — you can only gain a heart from the same player once per cooldown window (30 minutes by default), closing the obvious farming loop
- Vanilla heart reset on return — returning players come back with a clean vanilla heart count rather than carrying over an exploited state
- Configurable heart caps — set the base, minimum, and maximum heart count server-wide
- Optional command whitelist — restrict regular players to a safe list of commands while in the mode
Commands
| Command |
Description |
/life |
Show your current heart count and status |
/life withdraw <amount> |
Withdraw hearts into a physical heart item |
/life help |
Show command help |
Aliases: /hearts, /lifesteal, /ls
Admin
| Command |
Description |
/lifeadmin reload |
Reload the configuration |
/lifeadmin set <player> <amount> |
Set a player's heart count |
/lifeadmin give <player> <amount> |
Give a player hearts |
/lifeadmin reset <player> |
Reset a player to the base heart count |
/lifeadmin view <player> |
View a player's current heart state |
/lifeadmin unban <player> |
Lift a death ban early |
Aliases: /lsadmin, /lsa
Permissions
| Permission |
Default |
Description |
lifesteal.use |
true |
Use /life and withdraw hearts |
lifesteal.admin |
op |
Full LifeSteal administration |
Configuration highlights
hearts.base / hearts.min / hearts.max — starting, floor, and ceiling heart counts
anti-farm.enabled / anti-farm.cooldown-minutes — the same-victim cooldown window
command-whitelist.enabled / command-whitelist.allowed — restrict regular players to a safe command list while the mode is active
Setup
- Drop
LifeSteal.jar into your server's plugins/ folder.
- Restart the server.
- Set your heart caps and anti-farm window in
config.yml, then /lifeadmin reload.
Requirements & compatibility
- Server: Paper 1.21.11 (built and tested against this API version).
- Java: 21 or newer.
- No external dependencies required.
LifeSteal is open-source and MIT-licensed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧