⚔️ SimpleLifeSteal
专为 Minecraft 服务器打造的终极轻量级、即插即用的 LifeSteal SMP 插件。
概览
SimpleLifeSteal 旨在提供“即插即用”的体验,同时具备强大的自定义选项。无论您运营的是硬核生存服务器还是高赌注的激烈 SMP 服务器,SimpleLifeSteal 都能提供流畅的机制、反作弊防护以及零复杂设置需求!
现已更新至 v1.8.5,SimpleLifeSteal 在单个 jar 文件中实现了对 Bukkit、Spigot 和 Paper 的全平台通用支持,涵盖 Minecraft 版本 1.21.10 至 26.3!
✨ 主要功能
- ❤️ 经典生命窃取机制: 当玩家通过 PvP 击杀另一名玩家时,击杀者窃取 +1 颗心(+2 HP),而受害者失去 1 颗心。完全可配置为在所有死亡(怪物、摔落伤害、环境伤害)或仅限 PvP 死亡时失去心数。
- 🛡️ 新手保护期: 为新加入的玩家提供可配置时长的保护——阻止 PvP 心数损失(以及可选的非 PvP 心数损失),防止攻击者从受保护玩家身上刷取心数,并阻止受保护玩家窃取心数。
- 淘汰系统: 心数归零的玩家将被淘汰——踢出/封禁并附带可自定义的消息——且在被队友复活之前禁止重新加入服务器。
- 玩家复活与信标: 制作 复活图腾(可自定义配方:以不死图腾为基础,周围环绕钻石、信标和黑曜石),右键点击即可复活被淘汰的玩家。具有交互式 GUI 选择、可自定义的复活计时器、视觉全息显示、末地棒倒计时环、图腾破碎粒子爆发效果,以及可配置的复活初始心数(默认:5)。
- ⭐ 额外心数制作: 制作消耗品 生命之心(下界之星为基础)以获得永久增加的额外最大生命值。配方、物品显示名称、自定义描述、最大心数上限及可切换的设置均完全可自定义。
- 心数提取: 使用
/withdrawheart <amount> 将您的额外生命值转换为物理消耗品物品,用于安全交易和存储。
- 🛠️ 管理员与Moderation工具: 游戏内管理控制,包括
/giveheart、/takeheart、/viewheart、/revive、/lsrecipe(可视化配方 GUI 查看器)和 /sls reload。
- 防作弊保护: 内置防护机制,包括同 IP 击杀屏蔽和击杀者-受害者配对冷却时间,以防止刷取心数。
- ⚡ 战斗与机制开关: 可直接从配置文件中轻松禁用原版图腾、末影水晶爆炸或心数制作。
- 集中化自定义与格式化: 所有命令用法、通知、错误字符串和提示文本均在
messages.yml 中本地化,支持传统颜色代码(§)和 MiniMessage。完整软依赖集成 PlaceholderAPI。
命令与权限
| 命令 |
描述 |
权限节点 |
/sls help [command] |
显示根据您的权限过滤后的可用命令 |
Default (true) |
/sls info |
显示插件版本、数据库状态和 PlaceholderAPI 状态 |
simplelifesteal.info |
/withdrawheart <amount> |
将心数提取为物理物品 |
simplelifesteal.withdrawheart (仅 OP) |
/lsrecipe [heart|revival] |
打开制作配方查看器 GUI |
simplelifesteal.lsrecipe / .revival |
/giveheart <player> <amount> |
向在线玩家赠送心数 |
simplelifesteal.giveheart |
/takeheart <player> <amount> |
从玩家处夺取心数 |
simplelifesteal.takeheart |
/viewheart <player> |
检查在线或离线玩家的心数 |
simplelifesteal.viewheart |
/revive <player> |
手动复活一名被淘汰的玩家 |
simplelifesteal.revive |
/resetstats <all|player> |
清除统计数据(需两步确认) |
simplelifesteal.resetstats |
/sls reload |
重新加载配置文件 |
simplelifesteal.reload |
兼容性与服务器支持
- 支持版本: Minecraft 1.21.10 至 26.3
- 支持平台: Bukkit、Spigot 和 Paper(单一通用 Jar 包)
- Java 要求: Java 21+
- 可选依赖: PlaceholderAPI
只需将 SimpleLifeSteal.jar 放入服务器的 /plugins 文件夹并重启服务器即可——无需额外设置!
⚔️ SimpleLifeSteal 文档
版本: 1.8.5 | 作者: EpicGL
SimpleLifeSteal 是一款轻量级的“即插即用”LifeSteal SMP 插件,为您的服务器增添了激烈的生存机制。玩家通过击杀窃取心数,死亡时失去心数,并在心数为 0 时被淘汰,直到被复活。现已更新至 v1.8.5,它在单个 jar 文件中实现了对 Bukkit、Spigot 和 Paper 的全平台通用支持,涵盖 Minecraft 版本 1.21.10 至 26.3!
✨ 功能
- LifeSteal 机制: 击杀玩家可窃取 +1 颗心(永久增加 +2 HP)。受害者失去 1 颗心。
- 新手保护期: 为刚加入的玩家提供可配置的保护窗口——防止在 PvP 中(以及可选的非 PvP 死亡中)丢失心跳,防止攻击者从受保护玩家身上刷取心跳,并防止受保护玩家窃取心跳。
- 可配置的心跳丢失: 仅在 PvP 击杀时丢失心跳,或在任何死亡情况下(PvP、怪物、坠落等)丢失心跳。
- 淘汰系统: 当心跳为 0 时,玩家会被踢出/封禁,并显示自定义消息;在被复活之前无法重新加入服务器。
- 复活系统与信标: 制作复活图腾以带回被淘汰的玩家。包含交互式 GUI、自定义粒子效果、末影棒倒计时环和全息信标。
- 可制作的额外心跳: 制作生命之心(消耗品,用于永久增加 +1 心跳)。
- 心跳提取: 使用
/withdrawheart 将额外心跳作为物品提取出来。
- 最大心跳限制: 可配置的全局最大心跳数。
- 漏洞防护: 可选的同一 IP 屏蔽和击杀冷却时间。
- 开关选项: 禁用图腾、水晶 PvP、心跳制作等功能。
- 自定义物品与配方: 完全自定义名称、描述和合成配方。
- 现代格式支持: 使用旧版颜色代码并支持 MiniMessage。
- PlaceholderAPI 支持: 内置
%sls_*% 占位符,用于统计信息、保护状态和前十排行榜。
- GUI: 查看心跳配方和复活菜单。
📥 安装
- 下载最新的
SimpleLifeSteal-1.8.5.jar。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启或重载服务器。
- 根据需要配置
plugins/SimpleLifeSteal/config.yml 和 messages.yml。
- 使用
/sls reload 应用更改而无需重启服务器。
重要升级说明: 如果从旧版本更新,请备份现有的 config.yml 和 messages.yml,让插件生成带有新字段的新文件,并将您的设置复制过去。由于 v1.8.5 引入了新的数据库迁移字段,建议用于全新服务器,而非在活跃运行的服务器上直接升级。
📜 命令与权限
| 命令及别名 |
描述 |
权限默认值 |
/simplelifesteal / /sls |
主命令(重载配置) |
simplelifesteal.use (op) |
/giveheart <player> <amount> |
给玩家发放心跳物品 |
simplelifesteal.giveheart (op) |
/takeheart <player> <amount> |
移除玩家的心跳 |
simplelifesteal.takeheart (op) |
/viewheart <player> |
查看玩家当前的心跳数量 |
simplelifesteal.viewheart (op) |
/withdrawheart <amount> |
提取自己的心跳为物品 |
simplelifesteal.withdrawheart (true) |
/lsrecipe |
打开 GUI 查看生命之心的合成配方 |
simplelifesteal.lsrecipe (true) |
/revive <player> |
复活一名被淘汰的玩家(管理员命令) |
simplelifesteal.revive (op) |
权限节点摘要:
simplelifesteal.* — 所有权限 (仅限 op)。
simplelifesteal.withdrawheart — 允许提取心跳 (默认:true)。
simplelifesteal.lsrecipe — 查看心跳配方 GUI (默认:true)。
📊 PlaceholderAPI 集成 (%sls%)
玩家统计信息与保护期占位符
| 占位符 |
描述 |
%sls_hearts% |
返回玩家当前的有效心跳数量。 |
%sls_max_hearts% |
返回配置文件中设置的最大允许心跳数。 |
%sls_hearts_percentage% |
返回玩家的生命容量百分比(例如 80%)。 |
%sls_hearts_bar% |
渲染可视化的心跳条表示形式(例如 ❤❤❤❤❤❤)。 |
%sls_status% |
根据玩家的生命状态返回 Alive 或 Eliminated。 |
%sls_is_banned% |
根据玩家在当前 0 心跳状态下是否被死亡封禁,返回 true 或 false。 |
%sls_new_player% |
返回在 messages.yml 中配置的可定制的新手/老手标签。 |
%sls_grace_time_left% |
返回剩余的保护期时间(例如 11h 59m),或配置的 placeholder-grace-none 回退文本。 |
%sls_in_grace% |
根据新手保护是否当前生效,返回 true 或 false。 |
%sls_kills% |
返回导致窃取心跳的玩家击杀总数。 |
%sls_deaths% |
返回导致丢失心跳的总死亡次数。 |
%sls_kd_ratio% |
返回基于插件数据计算的玩家击杀/死亡比率。 |
%sls_withdraws% |
返回转换为物品形态的心跳总数。 |
%sls_hearts_stolen% |
返回玩家随时间累计窃取的心跳总数(不受最大心跳数限制)。 |
%sls_hearts_lost% |
返回玩家随时间累计丢失的心跳总数。 |
%sls_revives% |
返回玩家复活其他玩家的总次数。 |
%sls_revives_given% |
%sls_revives% 的别名:该玩家为他人完成的复活次数。 |
%sls_revives_received% |
返回该玩家被其他玩家复活的总次数。 |
排行榜:最多心跳 (%sls_top_hearts_...)
| 排名 (1 - 10) |
名称占位符 |
数值占位符 |
| 1 |
%sls_top_hearts_name_1% |
%sls_top_hearts_value_1% |
| 2 |
%sls_top_hearts_name_2% |
%sls_top_hearts_value_2% |
| 3 |
%sls_top_hearts_name_3% |
%sls_top_hearts_value_3% |
| 4 |
%sls_top_hearts_name_4% |
%sls_top_hearts_value_4% |
| 5 |
%sls_top_hearts_name_5% |
%sls_top_hearts_value_5% |
| 6 |
%sls_top_hearts_name_6% |
%sls_top_hearts_value_6% |
| 7 |
%sls_top_hearts_name_7% |
%sls_top_hearts_value_7% |
| 8 |
%sls_top_hearts_name_8% |
%sls_top_hearts_value_8% |
| 9 |
%sls_top_hearts_name_9% |
%sls_top_hearts_value_9% |
| 10 |
%sls_top_hearts_name_10% |
%sls_top_hearts_value_10% |
排行榜:最多击杀 (%sls_top_kills_...)
| 排名 (1 - 10) |
名称占位符 |
数值占位符 |
| 1 |
%sls_top_kills_name_1% |
%sls_top_kills_value_1% |
| 2 |
%sls_top_kills_name_2% |
%sls_top_kills_value_2% |
| 3 |
%sls_top_kills_name_3% |
%sls_top_kills_value_3% |
| 4 |
%sls_top_kills_name_4% |
%sls_top_kills_value_4% |
| 5 |
%sls_top_kills_name_5% |
%sls_top_kills_value_5% |
| 6 |
%sls_top_kills_name_6% |
%sls_top_kills_value_6% |
| 7 |
%sls_top_kills_name_7% |
%sls_top_kills_value_7% |
| 8 |
%sls_top_kills_name_8% |
%sls_top_kills_value_8% |
| 9 |
%sls_top_kills_name_9% |
%sls_top_kills_value_9% |
| 10 |
%sls_top_kills_name_10% |
%sls_top_kills_value_10% |
排行榜:窃取生命值最多 (%sls_top_stolen_...)
| 排名 (1 - 10) |
名称占位符 |
数值占位符 |
| 1 |
%sls_top_stolen_name_1% |
%sls_top_stolen_value_1% |
| 2 |
%sls_top_stolen_name_2% |
%sls_top_stolen_value_2% |
| 3 |
%sls_top_stolen_name_3% |
%sls_top_stolen_value_3% |
| 4 |
%sls_top_stolen_name_4% |
%sls_top_stolen_value_4% |
| 5 |
%sls_top_stolen_name_5% |
%sls_top_stolen_value_5% |
| 6 |
%sls_top_stolen_name_6% |
%sls_top_stolen_value_6% |
| 7 |
%sls_top_stolen_name_7% |
%sls_top_stolen_value_7% |
| 8 |
%sls_top_stolen_name_8% |
%sls_top_stolen_value_8% |
| 9 |
%sls_top_stolen_name_9% |
%sls_top_stolen_value_9% |
| 10 |
%sls_top_stolen_name_10% |
%sls_top_stolen_value_10% |
排行榜:失去生命值最多 (%sls_top_lost_...)
| 排名 (1 - 10) |
名称占位符 |
数值占位符 |
| 1 |
%sls_top_lost_name_1% |
%sls_top_lost_value_1% |
| 2 |
%sls_top_lost_name_2% |
%sls_top_lost_value_2% |
| 3 |
%sls_top_lost_name_3% |
%sls_top_lost_value_3% |
| 4 |
%sls_top_lost_name_4% |
%sls_top_lost_value_4% |
| 5 |
%sls_top_lost_name_5% |
%sls_top_lost_value_5% |
| 6 |
%sls_top_lost_name_6% |
%sls_top_lost_value_6% |
| 7 |
%sls_top_lost_name_7% |
%sls_top_lost_value_7% |
| 8 |
%sls_top_lost_name_8% |
%sls_top_lost_value_8% |
| 9 |
%sls_top_lost_name_9% |
%sls_top_lost_value_9% |
| 10 |
%sls_top_lost_name_10% |
%sls_top_lost_value_10% |
排行榜:给予复活次数最多 (%sls_top_revives_...)
| 排名 (1 - 10) |
名称占位符 |
数值占位符 |
| 1 |
%sls_top_revives_name_1% |
%sls_top_revives_value_1% |
| 2 |
%sls_top_revives_name_2% |
%sls_top_revives_value_2% |
| 3 |
%sls_top_revives_name_3% |
%sls_top_revives_value_3% |
| 4 |
%sls_top_revives_name_4% |
%sls_top_revives_value_4% |
| 5 |
%sls_top_revives_name_5% |
%sls_top_revives_value_5% |
| 6 |
%sls_top_revives_name_6% |
%sls_top_revives_value_6% |
| 7 |
%sls_top_revives_name_7% |
%sls_top_revives_value_7% |
| 8 |
%sls_top_revives_name_8% |
%sls_top_revives_value_8% |
| 9 |
%sls_top_revives_name_9% |
%sls_top_revives_value_9% |
| 10 |
%sls_top_revives_name_10% |
%sls_top_revives_value_10% |
排行榜:给予复活次数最多 [别名] (%sls_top_revives_given_...)
| 排名 (1 - 10) |
名称占位符 |
数值占位符 |
| 1 |
%sls_top_revives_given_name_1% |
%sls_top_revives_given_value_1% |
| 2 |
%sls_top_revives_given_name_2% |
%sls_top_revives_given_value_2% |
| 3 |
%sls_top_revives_given_name_3% |
%sls_top_revives_given_value_3% |
| 4 |
%sls_top_revives_given_name_4% |
%sls_top_revives_given_value_4% |
| 5 |
%sls_top_revives_given_name_5% |
%sls_top_revives_given_value_5% |
| 6 |
%sls_top_revives_given_name_6% |
%sls_top_revives_given_value_6% |
| 7 |
%sls_top_revives_given_name_7% |
%sls_top_revives_given_value_7% |
| 8 |
%sls_top_revives_given_name_8% |
%sls_top_revives_given_value_8% |
| 9 |
%sls_top_revives_given_name_9% |
%sls_top_revives_given_value_9% |
| 10 |
%sls_top_revives_given_name_10% |
%sls_top_revives_given_value_10% |
排行榜:接受复活次数最多 (%sls_top_revives_received_...)
| 排名 (1 - 10) |
名称占位符 |
数值占位符 |
| 1 |
%sls_top_revives_received_name_1% |
%sls_top_revives_received_value_1% |
| 2 |
%sls_top_revives_received_name_2% |
%sls_top_revives_received_value_2% |
| 3 |
%sls_top_revives_received_name_3% |
%sls_top_revives_received_value_3% |
| 4 |
%sls_top_revives_received_name_4% |
%sls_top_revives_received_value_4% |
| 5 |
%sls_top_revives_received_name_5% |
%sls_top_revives_received_value_5% |
| 6 |
%sls_top_revives_received_name_6% |
%sls_top_revives_received_value_6% |
| 7 |
%sls_top_revives_received_name_7% |
%sls_top_revives_received_value_7% |
| 8 |
%sls_top_revives_received_name_8% |
%sls_top_revives_received_value_8% |
| 9 |
%sls_top_revives_received_name_9% |
%sls_top_revives_received_value_9% |
| 10 |
%sls_top_revives_received_name_10% |
%sls_top_revives_received_value_10% |
⚙️ 配置 (config.yml)
# SimpleLifeSteal 配置文件
# 以下所有颜色代码均使用 MiniMessage 格式:<red>、<bold>、<gradient:#color1:#color2> 等。
# 如果已安装 PlaceholderAPI,则支持其功能。
# --- 数据库配置 ---
# 存储玩家统计数据(生命值、击杀数、死亡数等)的位置。
# SQLITE 无需设置:文件会在插件文件夹内自动创建。
# 切换到 MYSQL 可实现共享/网络数据库。表在启动时自动创建,
# 且架构版本化,因此未来的更新会迁移现有数据而不是将其清空。
# 如果数据库不可用,服务器将继续运行并自动重试持久化操作。
database:
# 选项:SQLITE(本地文件)或 MYSQL(外部数据库)
type: "MYSQL"
# MySQL 配置(仅在类型为 MYSQL 时使用)
mysql:
host: "localhost"
port: 3306
database: "lifesteal"
username: "root"
password: ""
pool-size: 10
# 玩家可拥有的最大生命值(满格心数)。
# Minecraft 默认生命值为 20 HP(10 颗心),因此每增加一颗心相当于 +2 HP。
# 示例:max_heart: 30 -> 最大 15 颗心(总计 30 HP)
# 警告:过高的数值可能导致游戏失衡或出现轻微的性能问题。
max_heart: 20
# 如果为 true,不死图腾将在死亡时防止生命值损失(玩家保留当前的心数)。
# 设置为 false 以在生命窃取机制中完全禁用图腾保护。
enable_totems: false
# 如果为 true,PvP 中爆炸的末影水晶可以触发心脏窃取(与玩家击杀相同)。
# 建议:除非你特别需要水晶 PvP 支持,否则设为 false。
enable_crystal_pvp: false
# 如果为 true,玩家在**任何**死亡情况下都会失去 1 颗心(PvP、怪物、坠落、熔岩等)。
# 如果为 false,只有在 PvP 击杀时才会失去/窃取心脏(推荐用于平衡服务器)。
on_death_heart_lose: true
# --- 新玩家保护期 ---
# 为新加入的玩家提供一定时间的保护,防止早期失去心脏。
new-player-grace-period:
# 保护持续时间(例如 "12h"、"30m"、"1d")。设置为 0 或禁用以关闭。
time: "12h"
# 如果为 true,受保护的玩家也不会因怪物、坠落伤害、熔岩等失去心脏。
protect-non-pvp: true
# 如果为 false,受保护的玩家无法从其他玩家那里窃取心脏。
can-steal-heart: false
# 复活倒计时配置位于 craft_revival_beacon.revival_time(见下文)。
# 旧的 "revive_timer" 键仍然被接受,但仅在 revival_time 缺失时使用。
# revive_timer: 300
revival_block: "BEACON" # 更改为 "OBSIDIAN" 或任何有效的材质名称(大写)
revival_nbt_key: "revival_id" # 可选:如果你想要不同的 NBT 键名,请更改此值
# 玩家在被淘汰(0 颗心)后复活时获得的心数。
# 这给了他们一个重返游戏的公平机会。
on_revive_heart_count: 5
# --- PlaceholderAPI 配置 ---
# 插件自带其自己的 PlaceholderAPI 扩展(标识符为 "sls"),因此这些值可以在任何支持占位符的地方显示:计分板、全息图、标签页列表、聊天、告示牌、书籍等...
# 示例:%sls_hearts% %sls_status% %sls_kills% %sls_top_hearts_name_1%
placeholders:
# 排行榜占位符从数据库重新读取的频率(秒)。
# 玩家统计占位符在加入/死亡/扣除/复活时立即更新。
leaderboard-refresh-seconds: 30
# %sls_hearts_bar% 使用的符号数量(1-40)。
hearts-bar-length: 10
# 玩家拥有/未拥有心的符号。
hearts-bar-filled: "❤"
hearts-bar-empty: ""
exploit-guard:
# 反作弊功能的总开关。
is_enable: true
# 玩家可以再次从**同一**玩家处窃取心脏之前的冷却时间(秒)。
# 防止使用小号或好友快速刷取心脏。300 = 5 分钟。
kill-cd: 5
# 如果为 true,共享同一 IP 地址的玩家不能互相窃取心脏。
# 有助于防止小号滥用。
same-ip: false
# --- 心脏合成配置 ---
# 控制合成消耗品物品的能力,该物品可授予 +1 永久心脏。
craft_heart:
# 心脏合成的总开关。
is_enable: true
# 如果为 true,达到 max_heart 上限的玩家无法合成更多心脏(防止浪费材料)。
# 强烈建议:true
crafting_blocked_on_heart_limit: true
# 内部配方标识符。玩家在合成物品后请勿更改!
# 赛季中途更改会导致已合成的心脏无法使用。
recipe_key: "extra_heart"
# 合成物品的基础材质。
result_item: "NETHER_STAR"
# 库存中显示的显示名称。
item_name: "<gradient:#FF3333:#FF9999><bold>Life Heart</bold></gradient>"
# 悬停在物品上时显示的描述文本。
# 为了提高清晰度和视觉吸引力而进行了改进。
item_lore:
- ""
- "<gray>» <gold>右键点击以消耗"
- "<gray>» <green>永久授予 <bold>+1 颗心</bold> <gray>(<bold>+2 HP</bold>)"
- ""
- "<dark_gray>最大心数: <white>{max_heart}</white>"
- "<red>在心数达到最大值时无法使用"
# 3x3 合成网格布局(从上到下)。
recipe_shape:
- "DID"
- "INI"
- "DID"
# 配方的成分映射。
recipe_ingredients:
D: DIAMOND
I: IRON_INGOT
N: NETHER_STAR
# --- 复活图腾合成配置 ---
# 控制合成用于复活被淘汰(0 心)玩家的物品。
craft_revival_beacon:
# 复活图腾合成的总开关。
is_enable: true
# 合成物品的基础材质。
result_item: "TOTEM_OF_UNDYING"
# 右键点击目标玩家后完成复活所需的时间(秒)。
# 300 = 5 分钟,60 = 1 分钟,...
# -1 或 0(或删除此键)= 即时复活
# 此值驱动倒计时全息图和复活任务。
revival_time: 10
# 库存中显示的显示名称。
item_name: "<gradient:#FFFF33:#FFAA00><bold>Revival Totem</bold></gradient>"
# 悬停在物品上时显示的描述文本。
# 改进了语法、清晰度和视觉吸引力。
item_lore:
- ""
- "<gray>» <gold>右键点击一名死亡玩家以复活他们"
- "<gray>» <green>使被淘汰的玩家重生"
- "<gray>» <green>为他们恢复 <bold>{on_revive_heart_count} 颗心</bold>"
- ""
- "<dark_gray>复活时间: <white>{revival_time}</white>"
- "<red>使用时会消耗图腾"
# 3x3 合成网格布局(从上到下)。
recipe_shape:
- "DDD"
- "DTD"
- "OBO"
# 配方的成分映射。
recipe_ingredients:
D: DIAMOND_BLOCK
T: TOTEM_OF_UNDYING
B: BEACON
O: OBSIDIAN
> ### ⚠️ 需要支持或发现了 Bug?
> 请**不要**在评论区报告 Bug、问题或请求帮助!在那里发布的问题无法被有效追踪和解决。
>
> 如果你遇到任何问题、需要安装帮助,或者想要报告 Bug,请加入我们的官方 Discord 服务器:
>
> **[加入 Discord 支持](https://discord.com/invite/hM9udjYtBj)**
⚔️ SimpleLifeSteal
The ultimate lightweight, drop-and-play LifeSteal SMP plugin for Minecraft servers.
Overview
SimpleLifeSteal is designed as a "just drop and play" experience with powerful customization options. Whether you run a hardcore survival server or an intense high-stakes SMP, SimpleLifeSteal delivers smooth mechanics, anti-exploit safeguards, and zero complex setup requirements!
Now updated to v1.8.5, SimpleLifeSteal features universal multi-platform support for Bukkit, Spigot, and Paper across Minecraft versions 1.21.10 through 26.3 in a single jar!
✨ Key Features
- ❤️ Classic LifeSteal Mechanics: When a player kills another in PvP, the killer steals +1 heart (+2 HP) while the victim loses 1 heart. Fully configurable to lose hearts on all deaths (mobs, fall damage, environmental) or PvP deaths only.
- 🛡️ New-Player Grace Period: Protects newly joined players for a configurable duration—blocking PvP heart loss (and optionally non-PvP heart loss), preventing attackers from farming hearts off protected players, and stopping protected players from stealing hearts.
- Elimination System: Players reaching 0 hearts are eliminated — kicked/banned with customizable messages — and prevented from rejoining until revived by a teammate.
- Player Revival & Beacons: Craft a Revival Totem (customizable recipe: Totem of Undying base surrounded by diamonds, beacons, and obsidian) and right-click to bring back eliminated players. Features interactive GUI selection, customizable revival timers, visual hologram displays, end-rod countdown rings, Totem pop particle bursts, and configurable starting hearts on revive (default: 5).
- ⭐ Extra Hearts Crafting: Craft consumable Life Hearts (Nether Star base) to gain permanent extra max health. Fully customizable recipe, item display name, custom lore, max-heart caps, and toggleable settings.
- Heart Withdrawal: Convert your extra health into physical consumable items using
/withdrawheart <amount> for safe trading and storage.
- 🛠️ Admin & Moderation Tools: In-game administrative controls including
/giveheart, /takeheart, /viewheart, /revive, /lsrecipe (visual recipe GUI viewer), and /sls reload.
- Exploit Protection: Built-in safeguards including same-IP kill blocking and killer-victim pair cooldowns to stop heart farming.
- ⚡ Combat & Mechanics Toggles: Easily disable vanilla totems, end-crystal explosions, or heart crafting directly from the configuration file.
- Centralized Customization & Formatting: All command usage, notifications, error strings, and prompt text are localized in
messages.yml with legacy color code (§) and MiniMessage support. Full soft-dependency integration with PlaceholderAPI.
Commands & Permissions
| Command |
Description |
Permission Node |
/sls help [command] |
Shows available commands filtered by your permissions |
Default (true) |
/sls info |
Displays plugin version, database state, and PlaceholderAPI status |
simplelifesteal.info |
/withdrawheart <amount> |
Withdraw hearts into physical items |
simplelifesteal.withdrawheart (Op-only) |
/lsrecipe [heart|revival] |
Open the crafting recipe viewer GUI |
simplelifesteal.lsrecipe / .revival |
/giveheart <player> <amount> |
Give hearts to an online player |
simplelifesteal.giveheart |
/takeheart <player> <amount> |
Take hearts from a player |
simplelifesteal.takeheart |
/viewheart <player> |
Check an online or offline player's heart count |
simplelifesteal.viewheart |
/revive <player> |
Manually revive an eliminated player |
simplelifesteal.revive |
/resetstats <all|player> |
Wipe statistics with a two-step confirmation |
simplelifesteal.resetstats |
/sls reload |
Reload configuration files |
simplelifesteal.reload |
Compatibility & Server Support
- Supported Versions: Minecraft 1.21.10 through 26.3
- Supported Platforms: Bukkit, Spigot, and Paper (Single Universal Jar)
- Java Requirements: Java 21+
- Optional Dependencies: PlaceholderAPI
Just drop the SimpleLifeSteal.jar into your server's /plugins folder and restart your server — no additional setup needed!
⚔️ SimpleLifeSteal Documentation
Version: 1.8.5 | Author: EpicGL
SimpleLifeSteal is a lightweight, "just drop and play" LifeSteal SMP plugin that adds intense survival mechanics to your server. Players steal hearts on kills, lose hearts on death, and get eliminated at 0 hearts until revived. Now updated to v1.8.5, it features universal cross-platform support for Bukkit, Spigot, and Paper across Minecraft versions 1.21.10 through 26.3 in a single jar!
✨ Features
- LifeSteal Mechanics: Kill a player to steal +1 heart (+2 HP permanently). Victims lose 1 heart.
- New-Player Grace Period: Configurable protection window for newly joined players—prevents heart loss in PvP (and optionally from non-PvP deaths), prevents attackers from farming hearts off protected players, and prevents protected players from stealing hearts.
- Configurable Heart Loss: Lose hearts on PvP kills only or any death (PvP, mobs, fall, etc.).
- Elimination System: At 0 hearts, players are kicked/banned with custom messages and cannot rejoin until revived.
- Revival System & Beacons: Craft a Revival Totem to bring back eliminated players. Features interactive GUIs, custom particle effects, end-rod countdown rings, and holographic beacons.
- Craftable Extra Hearts: Craft Life Hearts (consumable for +1 permanent heart).
- Heart Withdrawal: Withdraw extra hearts as items using
/withdrawheart.
- Max Hearts Limit: Configurable global max hearts.
- Exploit Protection: Optional same-IP blocking and kill cooldown.
- Toggles: Disable totems, crystal PvP, heart crafting, etc.
- Custom Items & Recipes: Fully customizable names, lores, and crafting recipes.
- Modern Formatting: Uses legacy colors and MiniMessage support.
- PlaceholderAPI Support: Built-in
%sls_*% placeholders for stats, grace status, and top-10 leaderboards.
- GUIs: View heart recipe and revival menu.
📥 Installation
- Download the latest
SimpleLifeSteal-1.8.5.jar.
- Place it in your server's
plugins/ folder.
- Restart or reload the server.
- Configure
plugins/SimpleLifeSteal/config.yml and messages.yml as needed.
- Use
/sls reload to apply changes without restarting.
Important Upgrade Note: If updating from an older version, back up your existing config.yml and messages.yml, let the plugin generate fresh files with the new fields, and copy your settings over. Because v1.8.5 introduces new database migration fields, it is recommended for fresh servers rather than upgrading an active live server.
📜 Commands & Permissions
| Command & Aliases |
Description |
Permission Default |
/simplelifesteal / /sls |
Main command (reload config) |
simplelifesteal.use (op) |
/giveheart <player> <amount> |
Give heart items to a player |
simplelifesteal.giveheart (op) |
/takeheart <player> <amount> |
Remove hearts from a player |
simplelifesteal.takeheart (op) |
/viewheart <player> |
View a player's current hearts |
simplelifesteal.viewheart (op) |
/withdrawheart <amount> |
Withdraw own hearts as items |
simplelifesteal.withdrawheart (true) |
/lsrecipe |
Open GUI to view Life Heart crafting recipe |
simplelifesteal.lsrecipe (true) |
/revive <player> |
Revive an eliminated player (admin command) |
simplelifesteal.revive (op) |
Permission Nodes Summary:
simplelifesteal.* — All permissions (op only).
simplelifesteal.withdrawheart — Allow withdrawing hearts (default: true).
simplelifesteal.lsrecipe — View heart recipe GUI (default: true).
📊 PlaceholderAPI Integration (%sls%)
Player Statistics & Grace Period Placeholders
| Placeholder |
Description |
%sls_hearts% |
Returns the current active heart count of the player. |
%sls_max_hearts% |
Returns the maximum allowable hearts set in the configuration. |
%sls_hearts_percentage% |
Returns the player's health capacity as a percentage (e.g., 80%). |
%sls_hearts_bar% |
Renders a visual heart bar representation (e.g., ❤❤❤❤❤❤). |
%sls_status% |
Returns Alive or Eliminated based on the player's life status. |
%sls_is_banned% |
Returns true or false depending on whether the player is currently deathbanned at 0 hearts. |
%sls_new_player% |
Returns the customizable new/veteran player label configured in messages.yml. |
%sls_grace_time_left% |
Returns remaining grace period time (e.g., 11h 59m) or the configured placeholder-grace-none fallback text. |
%sls_in_grace% |
Returns true or false depending on whether new-player grace protection is currently active. |
%sls_kills% |
Returns the total number of player kills that yielded a stolen heart. |
%sls_deaths% |
Returns the total number of deaths resulting in a lost heart. |
%sls_kd_ratio% |
Returns the player's Kill/Death ratio calculated from plugin data. |
%sls_withdraws% |
Returns the total number of hearts converted into item form. |
%sls_hearts_stolen% |
Returns the cumulative number of hearts the player has stolen over time (never capped by max hearts). |
%sls_hearts_lost% |
Returns the cumulative number of hearts the player has lost over time. |
%sls_revives% |
Returns the total number of times the player has revived other players. |
%sls_revives_given% |
Alias of %sls_revives%: revivals this player completed for other players. |
%sls_revives_received% |
Returns the total number of times this player was revived by other players. |
Leaderboard: Most Hearts (%sls_top_hearts_...)
| Rank (1 - 10) |
Name Placeholder |
Value Placeholder |
| 1 |
%sls_top_hearts_name_1% |
%sls_top_hearts_value_1% |
| 2 |
%sls_top_hearts_name_2% |
%sls_top_hearts_value_2% |
| 3 |
%sls_top_hearts_name_3% |
%sls_top_hearts_value_3% |
| 4 |
%sls_top_hearts_name_4% |
%sls_top_hearts_value_4% |
| 5 |
%sls_top_hearts_name_5% |
%sls_top_hearts_value_5% |
| 6 |
%sls_top_hearts_name_6% |
%sls_top_hearts_value_6% |
| 7 |
%sls_top_hearts_name_7% |
%sls_top_hearts_value_7% |
| 8 |
%sls_top_hearts_name_8% |
%sls_top_hearts_value_8% |
| 9 |
%sls_top_hearts_name_9% |
%sls_top_hearts_value_9% |
| 10 |
%sls_top_hearts_name_10% |
%sls_top_hearts_value_10% |
Leaderboard: Most Kills (%sls_top_kills_...)
| Rank (1 - 10) |
Name Placeholder |
Value Placeholder |
| 1 |
%sls_top_kills_name_1% |
%sls_top_kills_value_1% |
| 2 |
%sls_top_kills_name_2% |
%sls_top_kills_value_2% |
| 3 |
%sls_top_kills_name_3% |
%sls_top_kills_value_3% |
| 4 |
%sls_top_kills_name_4% |
%sls_top_kills_value_4% |
| 5 |
%sls_top_kills_name_5% |
%sls_top_kills_value_5% |
| 6 |
%sls_top_kills_name_6% |
%sls_top_kills_value_6% |
| 7 |
%sls_top_kills_name_7% |
%sls_top_kills_value_7% |
| 8 |
%sls_top_kills_name_8% |
%sls_top_kills_value_8% |
| 9 |
%sls_top_kills_name_9% |
%sls_top_kills_value_9% |
| 10 |
%sls_top_kills_name_10% |
%sls_top_kills_value_10% |
Leaderboard: Most Hearts Stolen (%sls_top_stolen_...)
| Rank (1 - 10) |
Name Placeholder |
Value Placeholder |
| 1 |
%sls_top_stolen_name_1% |
%sls_top_stolen_value_1% |
| 2 |
%sls_top_stolen_name_2% |
%sls_top_stolen_value_2% |
| 3 |
%sls_top_stolen_name_3% |
%sls_top_stolen_value_3% |
| 4 |
%sls_top_stolen_name_4% |
%sls_top_stolen_value_4% |
| 5 |
%sls_top_stolen_name_5% |
%sls_top_stolen_value_5% |
| 6 |
%sls_top_stolen_name_6% |
%sls_top_stolen_value_6% |
| 7 |
%sls_top_stolen_name_7% |
%sls_top_stolen_value_7% |
| 8 |
%sls_top_stolen_name_8% |
%sls_top_stolen_value_8% |
| 9 |
%sls_top_stolen_name_9% |
%sls_top_stolen_value_9% |
| 10 |
%sls_top_stolen_name_10% |
%sls_top_stolen_value_10% |
Leaderboard: Most Hearts Lost (%sls_top_lost_...)
| Rank (1 - 10) |
Name Placeholder |
Value Placeholder |
| 1 |
%sls_top_lost_name_1% |
%sls_top_lost_value_1% |
| 2 |
%sls_top_lost_name_2% |
%sls_top_lost_value_2% |
| 3 |
%sls_top_lost_name_3% |
%sls_top_lost_value_3% |
| 4 |
%sls_top_lost_name_4% |
%sls_top_lost_value_4% |
| 5 |
%sls_top_lost_name_5% |
%sls_top_lost_value_5% |
| 6 |
%sls_top_lost_name_6% |
%sls_top_lost_value_6% |
| 7 |
%sls_top_lost_name_7% |
%sls_top_lost_value_7% |
| 8 |
%sls_top_lost_name_8% |
%sls_top_lost_value_8% |
| 9 |
%sls_top_lost_name_9% |
%sls_top_lost_value_9% |
| 10 |
%sls_top_lost_name_10% |
%sls_top_lost_value_10% |
Leaderboard: Most Revives Given (%sls_top_revives_...)
| Rank (1 - 10) |
Name Placeholder |
Value Placeholder |
| 1 |
%sls_top_revives_name_1% |
%sls_top_revives_value_1% |
| 2 |
%sls_top_revives_name_2% |
%sls_top_revives_value_2% |
| 3 |
%sls_top_revives_name_3% |
%sls_top_revives_value_3% |
| 4 |
%sls_top_revives_name_4% |
%sls_top_revives_value_4% |
| 5 |
%sls_top_revives_name_5% |
%sls_top_revives_value_5% |
| 6 |
%sls_top_revives_name_6% |
%sls_top_revives_value_6% |
| 7 |
%sls_top_revives_name_7% |
%sls_top_revives_value_7% |
| 8 |
%sls_top_revives_name_8% |
%sls_top_revives_value_8% |
| 9 |
%sls_top_revives_name_9% |
%sls_top_revives_value_9% |
| 10 |
%sls_top_revives_name_10% |
%sls_top_revives_value_10% |
Leaderboard: Most Revives Given [Alias] (%sls_top_revives_given_...)
| Rank (1 - 10) |
Name Placeholder |
Value Placeholder |
| 1 |
%sls_top_revives_given_name_1% |
%sls_top_revives_given_value_1% |
| 2 |
%sls_top_revives_given_name_2% |
%sls_top_revives_given_value_2% |
| 3 |
%sls_top_revives_given_name_3% |
%sls_top_revives_given_value_3% |
| 4 |
%sls_top_revives_given_name_4% |
%sls_top_revives_given_value_4% |
| 5 |
%sls_top_revives_given_name_5% |
%sls_top_revives_given_value_5% |
| 6 |
%sls_top_revives_given_name_6% |
%sls_top_revives_given_value_6% |
| 7 |
%sls_top_revives_given_name_7% |
%sls_top_revives_given_value_7% |
| 8 |
%sls_top_revives_given_name_8% |
%sls_top_revives_given_value_8% |
| 9 |
%sls_top_revives_given_name_9% |
%sls_top_revives_given_value_9% |
| 10 |
%sls_top_revives_given_name_10% |
%sls_top_revives_given_value_10% |
Leaderboard: Most Revives Received (%sls_top_revives_received_...)
| Rank (1 - 10) |
Name Placeholder |
Value Placeholder |
| 1 |
%sls_top_revives_received_name_1% |
%sls_top_revives_received_value_1% |
| 2 |
%sls_top_revives_received_name_2% |
%sls_top_revives_received_value_2% |
| 3 |
%sls_top_revives_received_name_3% |
%sls_top_revives_received_value_3% |
| 4 |
%sls_top_revives_received_name_4% |
%sls_top_revives_received_value_4% |
| 5 |
%sls_top_revives_received_name_5% |
%sls_top_revives_received_value_5% |
| 6 |
%sls_top_revives_received_name_6% |
%sls_top_revives_received_value_6% |
| 7 |
%sls_top_revives_received_name_7% |
%sls_top_revives_received_value_7% |
| 8 |
%sls_top_revives_received_name_8% |
%sls_top_revives_received_value_8% |
| 9 |
%sls_top_revives_received_name_9% |
%sls_top_revives_received_value_9% |
| 10 |
%sls_top_revives_received_name_10% |
%sls_top_revives_received_value_10% |
⚙️ Configuration (config.yml)
# SimpleLifeSteal Configuration File
# All color codes below use MiniMessage format: <red>, <bold>, <gradient:#color1:#color2>, etc.
# Supports PlaceholderAPI if installed.
# --- DATABASE CONFIGURATION ---
# Where player statistics (hearts, kills, deaths, ...) are stored.
# SQLITE needs no setup: the file is created automatically inside this plugin's folder.
# Switch to MYSQL for a shared/networked database. Tables are created on startup and the
# schema is versioned, so future updates migrate existing data instead of wiping it.
# If the database is unreachable the server keeps running and persistence retries itself.
database:
# Options: SQLITE (local file) or MYSQL (external database)
type: "MYSQL"
# Configuration for MySQL (only used if type is MYSQL)
mysql:
host: "localhost"
port: 3306
database: "lifesteal"
username: "root"
password: ""
pool-size: 10
# Maximum number of hearts (full hearts) a player can have.
# Default Minecraft health is 20 HP (10 hearts), so each extra heart adds +2 HP.
# Example: max_heart: 30 -> maximum 15 hearts (30 HP total)
# WARNING: Extremely high values can cause unbalanced gameplay or minor performance issues.
max_heart: 20
# If true, Totems of Undying will prevent heart loss on death (player keeps their current hearts).
# Set to false to fully disable totem protection in lifesteal mechanics.
enable_totems: false
# If true, exploding end crystals in PvP can trigger heart steal (same as player kills).
# Recommended: false unless you specifically want crystal PvP support.
enable_crystal_pvp: false
# If true, players lose 1 heart on ANY death (PvP, mobs, fall, lava, etc.).
# If false, hearts are only lost/stolen on PvP kills (recommended for balanced servers).
on_death_heart_lose: true
# --- NEW-PLAYER GRACE PERIOD ---
# Protects newly joined players from early heart loss for a set duration.
new-player-grace-period:
# Duration of protection (e.g., 12h, 30m, 1d). Set to 0 or disable to turn off.
time: "12h"
# If true, protected players also do not lose hearts to mobs, fall damage, lava, etc.
protect-non-pvp: true
# If false, protected players cannot steal hearts from other players.
can-steal-heart: false
# Revival countdown is configured in craft_revival_beacon.revival_time (see below).
# The old "revive_timer" key is still accepted, but ONLY when revival_time is missing.
# revive_timer: 300
revival_block: "BEACON" # Change to "OBSIDIAN" or any valid Material name (uppercase)
revival_nbt_key: "revival_id" # Optional: Change this if you want a different NBT key name
# Number of hearts a player starts with after being revived from elimination (0 hearts).
# This gives them a fair chance to get back into the game.
on_revive_heart_count: 5
# --- PLACEHOLDERAPI CONFIGURATION ---
# The plugin ships its own PlaceholderAPI expansion (identifier "sls"), so these values can be
# shown anywhere placeholders work: scoreboards, holograms, tab lists, chat, signs, books, ...
# Examples: %sls_hearts% %sls_status% %sls_kills% %sls_top_hearts_name_1%
placeholders:
# How often (in seconds) the leaderboard placeholders are re-read from the database.
# Player statistics placeholders are updated immediately on join/death/withdraw/revive.
leaderboard-refresh-seconds: 30
# Number of symbols used by %sls_hearts_bar% (1-40).
hearts-bar-length: 10
# Symbol used for a heart the player has / does not have.
hearts-bar-filled: "❤"
hearts-bar-empty: ""
exploit-guard:
# Master toggle for anti-exploit features.
is_enable: true
# Cooldown (in seconds) before a player can steal a heart from the SAME player again.
# Prevents rapid heart farming with alt accounts or friends. 300 = 5 minutes.
kill-cd: 5
# If true, players sharing the same IP address cannot steal hearts from each other.
# Helps prevent alt-account abuse.
same-ip: false
# --- HEART CRAFTING CONFIGURATION ---
# Controls the ability to craft consumable items that grant +1 permanent heart.
craft_heart:
# Master toggle for heart crafting.
is_enable: true
# If true, players at max_heart cannot craft more hearts (prevents wasting materials).
# Highly recommended: true
crafting_blocked_on_heart_limit: true
# Internal recipe identifier. DO NOT CHANGE after players have crafted items!
# Changing mid-season will make existing crafted hearts unusable.
recipe_key: "extra_heart"
# Base material of the crafted item.
result_item: "NETHER_STAR"
# Display name shown in inventory.
item_name: "<gradient:#FF3333:#FF9999><bold>Life Heart</bold></gradient>"
# Lore lines shown when hovering over the item.
# Improved for clarity and visual appeal.
item_lore:
- ""
- "<gray>» <gold>Right-click to consume"
- "<gray>» <green>Permanently grants <bold>+1 Heart</bold> <gray>(<bold>+2 HP</bold>)"
- ""
- "<dark_gray>Maximum hearts: <white>{max_heart}</white>"
- "<red>Cannot be used at maximum hearts"
# 3x3 crafting grid layout (top to bottom).
recipe_shape:
- "DID"
- "INI"
- "DID"
# Ingredient mapping for the recipe.
recipe_ingredients:
D: DIAMOND
I: IRON_INGOT
N: NETHER_STAR
# --- REVIVAL TOTEM CRAFTING CONFIGURATION ---
# Controls crafting of the item used to revive eliminated (0-heart) players.
craft_revival_beacon:
# Master toggle for revival totem crafting.
is_enable: true
# Base material of the crafted item.
result_item: "TOTEM_OF_UNDYING"
# Time (in seconds) required to complete the revival after right-clicking the target player.
# 300 = 5 minutes, 60 = 1 minute, ...
# -1 or 0 (or removing this key) = instant revival
# This value drives the countdown hologram and the revival task.
revival_time: 10
# Display name shown in inventory.
item_name: "<gradient:#FFFF33:#FFAA00><bold>Revival Totem</bold></gradient>"
# Lore lines shown when hovering over the item.
# Improved grammar, clarity, and visual appeal.
item_lore:
- ""
- "<gray>» <gold>Right-click a dead player to revive them"
- "<gray>» <green>Brings an eliminated player back to life"
- "<gray>» <green>Restores them with <bold>{on_revive_heart_count} hearts</bold>"
- ""
- "<dark_gray>Revival time: <white>{revival_time}</white>"
- "<red>Consumes the totem on use"
# 3x3 crafting grid layout (top to bottom).
recipe_shape:
- "DDD"
- "DTD"
- "OBO"
# Ingredient mapping for the recipe.
recipe_ingredients:
D: DIAMOND_BLOCK
T: TOTEM_OF_UNDYING
B: BEACON
O: OBSIDIAN
⚠️ Need Support or Found a Bug?
Please DO NOT report bugs, issues, or request help in comment sections! Issues posted there cannot be tracked or resolved easily.
If you encounter any issues, need setup help, or want to report a bug, join our official Discord server:
评论 0
登录后参与评分
还没有评论,来抢沙发吧