玩家无法刷取的吸血模式。
所有吸血插件都会发放红心。而这个插件确保这些红心是凭实力赢得的。免费,无依赖项。
无人修复的问题
红心只是简单的一部分。运行一个吸血服务器则不然。
两个朋友站在角落里无限循环地互相击杀。一名玩家登录第二个账号来刷自己的小号。老手们蹲在出生点,在新人找到一棵树之前就把他们洗劫一空。有人在战斗中途下线以躲避死亡。这些都不是你服务器上的 bug —— 这是该玩法的本质,也是为什么吸血服务器会在第二周流失大量玩家的原因。
大多数插件只给你机制,而把管理留给你自己。HeartWarden 不仅提供了机制,还配备了四种防御措施,均可配置且默认开启。
四种防御措施
| 漏洞利用 | HeartWarden 的做法 |
|---|---|
| 无限循环击杀同一玩家 | 在冷却窗口内重复击杀不获得红心 |
| 刷取自己的小号账号 | 共享 IP 的玩家之间的击杀不获得任何红心 |
| 蹲出生点攻击新人 | 新玩家不会因被击杀而失去红心,击杀他们也不会给予任何人红心。如果新人先发起攻击,保护将提前失效——反击不计入攻击行为,因此他们不会被诱骗出保护状态 |
| 战斗中下线 | 战斗下线被视为死亡:玩家失去一颗红心,掉落物品栏,并在下次登录时被传送到出生点;对手获得该红心。被管理员踢出、使用 /restart 或服务器关闭不计入此列 |
每个窗口和开关都是一个配置值——将其中任意一项设置为 0 即可关闭该检查。
击杀者总会被告知为什么这次击杀没有获得红心。保持沉默正是导致玩家报告你的插件“损坏”的原因。
可见的保护
反滥用本质上是不可见的:当漏洞利用被阻止时,什么也不会发生。
/lifesteal stats 显示自插件安装以来实际执行的操作——计数的击杀数、按漏洞类型阻止的尝试次数、受惩罚的战斗下线、淘汰、复活、扣除的红心——以及被阻止的击杀比例。
最后一个数字也是你的调节旋钮。如果有三分之一的击杀被阻止,说明你的时间窗口设置过于激进,你可以用一行数据看到这一点,而不是从投诉中猜测。
计数器在重启后依然存在,并且可以通过一条命令重置。
完整的吸血模式一半功能
- 击杀得红心 — 初始红心数、硬上限、窃取数量、可选的自然死亡丢失
- 零红心淘汰 — 三种模式:插件自带的踢出列表、真实的服务器封禁、或旁观者模式。定时或永久
- 红心物品 — 可制作,右键食用。带有隐藏的物品数据标签,而非通过显示名称标识,因此在铁砧上重命名下界之星并不会合成红心
/withdraw— 将红心转换回物品。这使得红心成为你的经济系统可以使用的货币- 复活水晶 — 可制作的物品加上
/revive命令,用于复活已被淘汰的玩家 - 排行榜 —
/hearts top - 红心菜单 —
/hearts打开一个窗口:展示你的红心堆叠、作为玩家头像的排行榜、一个取款按钮(左击一次取一个,Shift+左击取五个),以及剩余的新手保护。管理员还会看到一个 Protection 按钮,打开实时统计窗口。设置gui.open-on-command: false可获得纯文本输出
为他人运行而构建
/lifesteal verify — 一个配置检查器,因为损坏的配置是无声的。未知的材质、形状中使用但原料中缺失的配方键、无效的淘汰模式、高于上限的起始值——这些在加载时都不会抛出错误。配方只是从未注册,而你的玩家会默默地无法制作红心。逐一验证它们的名字,并附带确切的配置路径。
它还会报告更新中添加但你配置文件中尚不存在的设置。Bukkit 会静默回退到 jar 包中的默认值,所以一切照常工作,而你永远不知道新选项的存在。
YAML、SQLite 或 MySQL — storage.type 可在你可以用记事本打开的文件、本地 SQLite 数据库或 MySQL 服务器(已针对 MySQL 8 测试)之间切换。从 YAML 切换会自动迁移现有的 players.yml 并将旧文件保留为备份。SQLite 和 MySQL 驱动程序随 Paper 一起提供;无需安装任何东西。
英文和俄文 — 插件以英文提供,首次启动时 config-ru.yml 会与你的配置文件并存。交换文件,重启,完成。
命令
| 命令 | 权限 | 功能 |
|---|---|---|
/hearts |
heartwarden.hearts |
打开红心菜单(或打印你的红心) |
/hearts [player] |
heartwarden.hearts.others |
查看其他玩家的红心 |
/hearts top [n] |
heartwarden.hearts |
排行榜 |
/hearts set|add|remove |
heartwarden.hearts.modify |
修改玩家的红心数量 |
/withdraw <amount> |
heartwarden.withdraw |
将红心转换为物品 |
/revive <player> |
heartwarden.revive |
复活已被淘汰的玩家 |
/lifesteal reload |
heartwarden.admin |
重新加载配置 |
/lifesteal verify |
heartwarden.admin |
检查配置中的问题 |
/lifesteal stats |
heartwarden.admin |
显示保护所阻止的内容 |
此外还有 heartwarden.bypass.farm(默认:false),允许工作人员忽略反滥用检查。
配置
protection:
# 再次击杀同一玩家在经过以下
# 分钟数之前不会获得红心。0 = 禁用此检查。
same-victim-cooldown-minutes: 30
# 共享 IP 的玩家之间的击杀不获得红心。
# 阻止“击杀自己的小号账号”的方案。
block-same-ip: true
# 新玩家在以下分钟内不会因被击杀而失去红心,击杀
# 他们也不会给予任何人红心。首先攻击其他玩家会提前结束
# 保护(反击无效)。0 = 禁用。
newbie-grace-minutes: 15
战斗中退出游戏会被视为死亡。
combat-log: enabled: true # 受到攻击后多少秒内玩家仍被视为处于战斗状态 tag-seconds: 15 # 同样在战斗中退出时掉落玩家的物品栏,与真实死亡一致 # (如果 keepInventory 游戏规则已开启,则会自动跳过)。 drop-items: true
配置文件包含了所有消息、物品名称、配方和窗口标题。颜色使用 MiniMessage 格式,包括渐变色。
## 依赖要求
- Paper 1.21.4 – 1.21.11 以及 26.1 – 26.2 —— 一个 jar 包兼容所有这些版本
- Java 21 或更高版本
- 无其他依赖。不需要 PlaceholderAPI,无需额外安装任何插件
## 尚未包含的功能
- 不支持 PlaceholderAPI 占位符
- 没有 Discord 通知功能
- 没有自定义心形纹理 / 资源包
## 技术支持
欢迎提交 Bug 报告,其优先级高于功能请求。提供配置文件及相关日志行内容的报告会得到最快修复。
Lifesteal your players can't farm.
Every lifesteal plugin gives out hearts. This one makes sure they were earned. Free, no dependencies.
The problem nobody ships a fix for
Hearts are the easy part. Running a lifesteal server is not.
Two friends stand in a corner and kill each other on loop. A player logs into a second account and farms his own alt. Veterans camp spawn and strip newcomers before they find a tree. Someone quits mid-fight to dodge the death. None of that is a bug in your server — it is the shape of the mode, and it is why lifesteal servers bleed players in week two.
Most plugins hand you the mechanic and leave the moderation to you. HeartWarden ships the mechanic and the four defences, configurable, on by default.
The four defences
| Exploit | What HeartWarden does |
|---|---|
| Killing the same player on loop | No hearts awarded for a repeat kill inside a cooldown window |
| Farming your own alt account | Kills between players sharing an IP award nothing |
| Spawn-camping newcomers | New players lose no hearts, and killing them grants none. A newcomer who attacks someone first loses the protection early — hitting back does not count, so they cannot be baited out of it |
| Logging out mid-fight | Combat logout counts as a death: the player loses a heart, drops their inventory and, on their next login, is sent to their spawn point; the opponent gets the heart. Being kicked by an admin, /restart or a server shutdown does not count |
Every window and toggle is a config value — set any of them to 0 to turn that check off.
The killer always gets told why a kill paid nothing. Silence here is what makes players report your plugin as broken.
Protection you can actually see
Anti-abuse is invisible by nature: when an exploit is blocked, nothing happens.
/lifesteal stats shows what the plugin has actually done since it was installed — kills counted, attempts blocked per exploit type, combat logs punished, eliminations, revives, hearts withdrawn — and the share of all kills that were blocked.
That last number is also your tuning dial. If a third of kills are being blocked, your windows are too aggressive, and you can see it in one line instead of guessing from complaints.
Counters survive restarts and reset with one command.
The lifesteal half, in full
- Hearts on kill — starting hearts, hard cap, steal amount, optional loss on natural death
- Elimination at zero — three modes: the plugin's own kick list, a real server ban, or spectator. Timed or permanent
- Heart item — craftable, right-click to consume. Tagged with hidden item data, not by display name, so renaming a nether star in an anvil does not forge one
/withdraw— turn hearts back into items. This is what makes hearts a currency your economy can use- Revival Crystal — craftable item plus
/reviveto bring an eliminated player back - Leaderboard —
/hearts top - Heart menu —
/heartsopens a window: your hearts as a stack, the leaderboard as player heads, a withdraw button (left-click for one, shift for five), and remaining newbie protection. Admins also get a Protection button that opens a live statistics window. Setgui.open-on-command: falsefor plain text instead
Built to be run by someone else
/lifesteal verify — a config checker, because a broken config is silent. An unknown material, a recipe key used in the shape but missing from the ingredients, an invalid elimination mode, a start value above the cap — none of these throw an error on load. The recipe just never registers, and your players quietly cannot craft hearts. Verify names every one of them, with the exact config path.
It also reports settings added in an update that your config file does not have yet. Bukkit silently falls back to the jar defaults, so everything keeps working and you never learn the new options exist.
YAML, SQLite or MySQL — storage.type switches between a file you can open in Notepad, a local SQLite database, or a MySQL server (tested with MySQL 8). Switching away from YAML migrates your existing players.yml automatically and keeps the old file as a backup. The SQLite and MySQL drivers ship inside Paper; there is nothing to install.
English and Russian — the plugin ships in English, and config-ru.yml lands next to your config on first start. Swap the file, restart, done.
Commands
| Command | Permission | What it does |
|---|---|---|
/hearts |
heartwarden.hearts |
Open the heart menu (or print your hearts) |
/hearts [player] |
heartwarden.hearts.others |
Someone else's hearts |
/hearts top [n] |
heartwarden.hearts |
Leaderboard |
/hearts set|add|remove |
heartwarden.hearts.modify |
Change a player's hearts |
/withdraw <amount> |
heartwarden.withdraw |
Turn hearts into items |
/revive <player> |
heartwarden.revive |
Bring an eliminated player back |
/lifesteal reload |
heartwarden.admin |
Reload the config |
/lifesteal verify |
heartwarden.admin |
Check the config for problems |
/lifesteal stats |
heartwarden.admin |
What the protection has blocked |
Plus heartwarden.bypass.farm (default: false) to let staff ignore the anti-abuse checks.
Configuration
protection:
# Killing the same player again grants no hearts until this
# many minutes have passed. 0 = disable this check.
same-victim-cooldown-minutes: 30
# Kills between players sharing an IP grant no hearts.
# Shuts down the "kill your own alt account" scheme.
block-same-ip: true
# New players lose no hearts for this many minutes, and killing
# them grants nothing. Attacking another player first ends the
# protection early (hitting back does not). 0 = disable.
newbie-grace-minutes: 15
# Logging out mid-fight counts as a death.
combat-log:
enabled: true
# How long after taking a hit a player counts as in combat
tag-seconds: 15
# Drop the player's inventory on combat-log too, same as a real death
# would (skipped automatically if the keepInventory gamerule is on).
drop-items: true
Every message, item name, recipe and window title is in the config. Colours use MiniMessage, including gradients.
Requirements
- Paper 1.21.4 – 1.21.11 and 26.1 – 26.2 — one jar for all of them
- Java 21 or newer
- No dependencies. No PlaceholderAPI required, nothing to install alongside
What is not in it yet
- No PlaceholderAPI placeholders
- No Discord notifications
- No custom heart textures / resource pack
Support
Bug reports are welcome and get priority over feature requests. A report with your config and the relevant log lines gets fixed fastest.
下载 HeartWarden
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HeartWarden
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HeartWarden
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HeartWarden
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HeartWarden
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HeartWarden
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HeartWarden
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HeartWarden
下载 HeartWarden
- 修复:手持复活水晶不再阻止打开箱子和门——仅禁止将其放置为方块
- 更改:已被淘汰的玩家将被早期登录事件拒绝;已弃用的 PlayerLoginEvent 不再使用,因此最近的 Paper 构建版本在启动时不再发出相关警告
- 配置文件和数据保持不变
- 新增:所有原本硬编码为英文的文本现已移至配置文件中,支持翻译——包括
/hearts窗口、统计窗口、/lifesteal stats、/lifesteal verify以及快捷栏上方的战斗倒计时 - 俄语配置文件(
config-ru.yml)现已涵盖全部内容 - 配置:新增
gui.hearts-window和gui.stats-window部分及十条消息;旧版配置文件仍可在英文默认值下正常工作
-
新增:
/hearts <玩家>和/hearts set|add|remove <玩家> <数量>命令现在适用于离线玩家(即曾经加入过的任何玩家) -
修复:在旁观者模式下,一名被离线淘汰的玩家(通过命令或战斗日志)以普通玩家身份加入;现在他们在加入时会被置于旁观者模式
-
更改:已离线并被淘汰的玩家的“生命之心”不再被编辑——请使用
/revive,它同时会移除计时器和封禁
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧