Lifesteal2:终极吸血模组
Lifesteal2 是一款现代化、注重性能且完全可配置的 Minecraft 服务器吸血(Lifesteal)系统插件。
它包含高级的生命值机制、可配置的物品、自定义 GUI 系统、PlaceholderAPI 支持,以及通过配置文件和消息文件实现的完全自定义功能。
所有系统均可调整,以适配任何 SMP、阵营或生存服务器设置。
特性
完全可配置
所有机制、合成配方、限制和选项均存储在配置文件中。
你可以轻松切换自然生命值丢失、限制最大生命值数量、调整复活行为,并微调物品合成或 GUI 设置。
自定义物品
生命之心物品 – 使用你配置的配方合成,右键点击可增加一颗心。
复活工具 – 打开交互式复活 GUI,列出所有失去全部心值的玩家,允许使用可配置的心数将其复活。
复活 GUI
复活菜单列出了所有因失去最后一颗心而被封禁的玩家。
每位玩家显示其头像、悬停提示框以及点击复活功能。
支持多页显示,页面槽位数量可在配置中调整。
该功能也可通过配置文件禁用或简化。
可配置合成配方
“生命之心”和“复活工具”的合成配方均可在配置文件中完全编辑。
配方按从左到右、从上到下的顺序书写,对应 3x3 合成台布局。
数据存储
每位玩家的心数状态和封禁状态均安全保存,并在服务器重启后持久化。
数据存储在插件文件夹内的 playerdata.yml 文件中。
消息自定义
所有插件消息均存储在 messages.yml 文件中。
这包括每一条聊天消息、帮助章节以及排行榜格式化内容——让你完全掌控插件的外观与体验。
PlaceholderAPI 支持
插件内置了占位符,可用于计分板、侧边栏或 GUI:
%lifesteal2_hearts% — 显示玩家当前的心数
%lifesteal2_is_banned% — 显示玩家是否被永久吸血封禁
%lifesteal2_rank% — 显示其在排行榜中的位置
可配置的心值上限与惩罚机制
启用或禁用最大心值限制。
设置允许的最大心数。
定义玩家心数归零时的惩罚措施,包括永久或限时封禁以及自定义命令执行。
间接击杀检测
当玩家使用间接方式(如末影水晶或 TNT)击杀他人时,只要可能,击杀者仍会被正确识别。
排行榜与状态命令
使用 /heartleaderboard 查看顶级玩家,或使用 /statuslifesteal 验证插件运行状态。
排行榜布局可在 messages.yml 中自定义。
更新检查器
服务器启动时,控制台会自动检查 Lifesteal2 的新版本,并在有可用更新时通知你。
Tab 补全
所有命令均支持玩家名称和参数的 Tab 自动补全。
命令说明
| 命令 |
描述 |
权限节点 |
| /hearts [player] |
查看自己或其他玩家的心数 |
lifesteal.hearts, lifesteal.hearts.others |
| /giveheart <player> <amount> |
给予玩家心数 |
lifesteal.giveheart |
| /takehearts <player> <amount> |
扣除玩家心数并获得相应数量的物品 |
lifesteal.takehearts |
| /sethearts <player> <amount> |
设置玩家的精确心数 |
lifesteal.sethearts |
| /withdrawhearts <amount> |
将你的心数提取为“生命之心”物品 |
lifesteal.withdrawhearts |
| /withdrawhearts <player> <amount> |
从其他玩家处提取心数(仅限管理员) |
lifesteal.withdrawhearts.others |
| /heartrecipe |
将“生命之心”配方加入配方书 |
lifesteal.heartrecipe |
| /revivetoolrecipe |
将“复活工具”配方加入配方书 |
lifesteal.revivetoolrecipe |
| /statuslifesteal |
检查插件状态及错误信息 |
lifesteal.status |
| /heartleaderboard |
显示心数排行榜 |
lifesteal.leaderboard |
| /helplifesteal |
列出所有可用命令 |
lifesteal.helplifesteal |
示例配置
natural-death-drops-heart: false
max-hearts:
enabled: true
limit: 20
revive:
hearts-after-revive: 3
gui-enabled: true
gui-size: 54
punishment:
type: "ban"
duration: "7d" # 或 "permanent"
crafting:
heart-recipe:
- DIAMOND
- NETHERITE_INGOT
- DIAMOND
- EMERALD_BLOCK
- NETHER_STAR
- EMERALD_BLOCK
- DIAMOND
- NETHERITE_INGOT
- DIAMOND
revive-recipe:
- NETHERITE_INGOT
- DIAMOND
- NETHERITE_INGOT
- ENCHANTED_GOLDEN_APPLE
- NETHER_STAR
- ENCHANTED_GOLDEN_APPLE
- NETHERITE_INGOT
- DIAMOND
- NETHERITE_INGOT
(如果生成的配置文件与此示例不同,是由于 Markdown 格式解析导致的差异。)
技术细节
适用于 Minecraft 1.21 及更高版本
需要 Java 25 或更高版本
兼容 Spigot、Paper 和 Purpur
玩家数据存储于 /plugins/Lifesteal2/playerdata.yml
若配置文件被删除,将自动生成新的默认配置
开箱即用支持 PlaceholderAPI
权限节点
- lifesteal.hearts
- lifesteal.hearts.others
- lifesteal.giveheart
- lifesteal.takehearts
- lifesteal.sethearts
- lifesteal.withdrawhearts
- lifesteal.withdrawhearts.others
- lifesteal.heartrecipe
- lifesteal.revivetoolrecipe
- lifesteal.status
- lifesteal.leaderboard
- lifesteal.helplifesteal
致谢
开发者:waffleboiii
Lifesteal2: The Ultimate Lifesteal Plugin
Lifesteal2 is a modern, performance-focused, and fully configurable lifesteal system for Minecraft servers.
It includes advanced heart mechanics, configurable items, custom GUI systems, PlaceholderAPI support, and complete customization through config and message files.
Every system can be tuned to match any SMP, factions, or survival setup.
Features
Fully Configurable
All mechanics, recipes, limits, and options are stored in the configuration file.
You can toggle natural heart loss, limit maximum hearts, adjust revive behavior, and fine-tune item crafting or GUI settings easily.
Custom Items
Heart Item – crafted using your configurable recipe, adds one heart when right-clicked.
Revive Tool – opens an interactive revive GUI listing players who lost all hearts, allowing them to be brought back with a configurable amount of hearts.
Revive GUI
The revive menu lists all players banned for losing their last heart.
Each appears with their player head, hover tooltip, and click-to-revive function.
Supports multiple pages with configurable slot counts.
The system can also be disabled or simplified through config.
Configurable Recipes
Both Heart and Revive Tool recipes are fully editable in the configuration file.
Recipes are written left-to-right, top-to-bottom, corresponding to a 3x3 crafting table.
Data Storage
Every player’s heart count and ban status are saved securely and persist through restarts.
Data is stored in playerdata.yml within the plugin folder.
Message Customization
All plugin messages are stored in messages.yml.
This includes every chat message, help section, and even leaderboard formatting—giving complete control over how the plugin looks and feels.
PlaceholderAPI Support
The plugin includes built-in placeholders for use in scoreboards, sidebars, or GUIs:
%lifesteal2_hearts% — shows the player’s current heart count
%lifesteal2_is_banned% — shows if a player is lifebanned
%lifesteal2_rank% — shows their leaderboard position
Configurable Heart Limits and Punishments
Enable or disable maximum heart limits.
Set the maximum allowed heart count.
Define punishments when a player reaches zero hearts, including permanent or timed bans and custom commands.
Indirect Kill Detection
When a player kills another using indirect methods (such as end crystals or TNT), the kill is still correctly attributed to the attacker whenever possible.
Leaderboard and Status Commands
Check top players with /heartleaderboard or verify plugin functionality with /statuslifesteal.
Leaderboard layout can be customized in messages.yml.
Update Checker
When the server starts, the console checks for new Lifesteal2 versions and notifies you if an update is available.
Tab Completion
All commands include tab completion for players and arguments.
Commands
Command Description Permission
/hearts [player] Show your or another player’s hearts lifesteal.hearts, lifesteal.hearts.others
/giveheart <player> <amount> Give hearts to a player lifesteal.giveheart
/takehearts <player> <amount> Take hearts and receive them as items lifesteal.takehearts
/sethearts <player> <amount> Set a player’s exact heart count lifesteal.sethearts
/withdrawhearts <amount> Withdraw your hearts as Heart items lifesteal.withdrawhearts
/withdrawhearts <player> <amount> Withdraw hearts from another player (admin only) lifesteal.withdrawhearts.others
/heartrecipe Add Heart recipe to recipe book lifesteal.heartrecipe
/revivetoolrecipe Add Revive Tool recipe to recipe book lifesteal.revivetoolrecipe
/statuslifesteal Check plugin status and errors lifesteal.status
/heartleaderboard Show the heart leaderboard lifesteal.leaderboard
/helplifesteal List all available commands lifesteal.helplifesteal
Example Config
natural-death-drops-heart: false
max-hearts:
enabled: true
limit: 20
revive:
hearts-after-revive: 3
gui-enabled: true
gui-size: 54
punishment:
type: "ban"
duration: "7d" # or "permanent"
crafting:
heart-recipe:
- DIAMOND
- NETHERITE_INGOT
- DIAMOND
- EMERALD_BLOCK
- NETHER_STAR
- EMERALD_BLOCK
- DIAMOND
- NETHERITE_INGOT
- DIAMOND
revive-recipe:
- NETHERITE_INGOT
- DIAMOND
- NETHERITE_INGOT
- ENCHANTED_GOLDEN_APPLE
- NETHER_STAR
- ENCHANTED_GOLDEN_APPLE
- NETHERITE_INGOT
- DIAMOND
- NETHERITE_INGOT
(If the generated config differs from this example, it is due to markdown formatting.)
Technical Details
Built for Minecraft 1.21 and higher
Requires Java 25 or higher
Compatible with Spigot, Paper, and Purpur
Player data stored in /plugins/Lifesteal2/playerdata.yml
Config regenerates automatically if deleted
Supports PlaceholderAPI out of the box
Permissions
lifesteal.hearts
lifesteal.hearts.others
lifesteal.giveheart
lifesteal.takehearts
lifesteal.sethearts
lifesteal.withdrawhearts
lifesteal.withdrawhearts.others
lifesteal.heartrecipe
lifesteal.revivetoolrecipe
lifesteal.status
lifesteal.leaderboard
lifesteal.helplifesteal
Credits
Developed by waffleboiii
评论 0
登录后参与评分
还没有评论,来抢沙发吧