
LifeStealZ 是一款生命窃取生存模式(SMP)插件,允许你在击杀其他玩家时窃取他们的心。如果一名玩家没有剩余的心,他将被淘汰。你可以制作额外的心或复活水晶。使用这种水晶,你可以让被淘汰的队友复活。
LifeStealZ 提供了大量管理工具,并且高度可定制。你可以更改所有消息内容,并自定义物品的相关设置。


主要功能
- ✅ 窃取心
- ✅ 提取心
- ✅ 自定义心物品
- ✅ 自定义合成配方
- ✅ 复活道具
- ✅ 最大心数和初始心数
- ✅ 禁用图腾
- ✅ 禁用水晶 PvP
- ✅ 游戏内配方查看器
- ✅ PlaceholderAPI 占位符
- ✅ 自定义 WorldGuard 标志
- ✅ 管理员命令
- ✅ 支持 HEX 颜色和渐变
- ✅ 支持 SQLite 和 MySQL
语言
- 英语 (
en-US)
- 德语 (
de-DE)
- 西班牙语 (
es-ES)
- 法语 (
fr-FR)
- 捷克语 (
cs-CZ)
- 波兰语 (
pl-PL)
- 越南语 (
vi-VN)
- 简体中文 (
zh-CN)
- 俄语 (
ru-RU)
- 荷兰语 (
nl-NL)
- 葡萄牙语 (
pt-BR)
- 日语 (
ja-JP)

- lifestealz.admin.reload - 允许重新加载插件
- lifestealz.admin.setlife - 允许设置玩家拥有的心数量
- lifestealz.admin.giveitem - 允许向玩家给予自定义物品
- lifestealz.admin.eliminate - 允许使用
/eliminate 命令淘汰玩家
- lifestealz.admin.revive - 允许使用
/revive 命令复活另一名玩家
- lifestealz.bypassrevivelimit - 允许玩家绕过复活次数限制
- lifestealz.withdraw - 允许玩家提取心(默认为开启)
- lifestealz.revive - 允许玩家使用复活水晶复活他人(默认为开启)
- lifestealz.viewrecipes - 允许玩家查看自定义配方(默认为开启)
- lifestealz.help - 允许玩家访问帮助菜单(默认为开启)
- lifestealz.viewhearts - 允许玩家查看自己拥有的心数量(使用
/hearts 命令)(默认为开启)
- lifestealz.maxhearts.[amount] - 设置玩家的最大心数。这将覆盖配置文件中的
maxHearts 设置

配置文件被拆分到多个文件中,位于 plugins/LifeStealZ/ 目录下:
config.yml
# _ _ __ _____ _ _ ______
# | | (_)/ _| / ____| | | | |___ /
# | | _| |_ ___ | (___ | |_ ___ __ _| | / /
# | | | | _/ _ \ \___ \| __/ _ \/ _` | | / /
# | |____| | || __/ ____) | || __/ (_| | | / /__
# |______|_|_| \___| |_____/ \__\___|\__,_|_| /_____|
# === 颜色代码 ===
# 此插件支持旧版颜色代码,例如:&c, &l, &o 等。
# 它还支持 MiniMessage,这是一种更高级的消息格式化方式:
# https://docs.advntr.dev/minimessage/format.html
# 使用 MiniMessage,你可以添加 HEX 颜色、渐变、悬停和点击事件等。
# === 常规设置 ===
# 如果设置为 true,LifeStealZ 将检查更新并在有新版本时通知你
checkForUpdates: true
# 将语言设置为 "lang" 文件夹中找到的任何代码(不要添加 .yml 扩展名)
# 你可以添加自己的语言文件。使用 https://github.com/KartoffelChipss/LifeStealZ/tree/main/src/main/resources/lang/en-US.yml 作为模板
# 如果你想帮助翻译此插件,请参阅本文:https://lsz.strassburger.dev/contributing/localization
# | en-US | de-DE | es-ES | fr-FR | cs-CZ | vi-VN | zh-CN | pl-PL | nl-NL | ru-RU
lang: "en-US"
# === 心设置 ===
# 玩家首次加入时拥有的生命值(以心数为单位)
startHearts: 10
# 玩家可拥有的最大生命值
# 你也可以通过 `lifestealz.maxhearts.[amount]` 权限为玩家设置个人上限,或在 items.yml 文件中为物品设置上限
maxHearts: 20
# 玩家复活后应保留的生命值
reviveHearts: 1
# 击杀者应获得以及受害者应失去的心数
heartsPerKill: 1
# 玩家自然死亡时应失去的心数
heartsPerNaturalDeath: 1
# 最小生命值。如果玩家的心数降至该值,将被淘汰。
# 除非你清楚自己在做什么,否则请勿更改!
minHearts: 0
# 此选项将对管理员命令(如 `/lifestealz hearts <add, set> <player> <amount>`)强制执行生命值上限
# 请注意,此
enforceMaxHeartsOnAdminCommands: false
# 以下场景应使用的自定义物品(必须是 items.yml 中的 ID)
heartItem:
# 此物品将用于未在下文中列出的所有情况(主要是遗留兼容)
default: "defaultheart"
# 当用户取走一颗心时发放的物品
withdraw: "defaultheart"
# 当一名玩家被另一名玩家杀死且启用了 "dropHeartsPlayer" 时掉落的物品
kill: "defaultheart"
# 当一名玩家因自然原因死亡且启用了 "dropHeartsNatural" 时掉落的物品
naturalDeath: "defaultheart"
# 当一名玩家被杀死、击杀者仍处于冷却时间且启用了 "heartGainCooldown.dropOnCooldown" 时掉落的物品
heartGainCooldown: "defaultheart"
# 当一名玩家被杀死、击杀者已达到最大心数且启用了 "dropHeartsIfMax" 时掉落的物品
maxHearts: "defaultheart"
# === 心数行为设置 ===
# 当被玩家杀死时是否掉落心数
dropHeartsPlayer: false
# 当自然死亡时是否掉落心数
dropHeartsNatural: true
# 当击杀者已达到最大心数时是否掉落心数
dropHeartsIfMax: true
# 当玩家因敌对生物或坠落伤害、岩浆等自然原因死亡时,是否失去一颗心
looseHeartsToNature: true
# 当玩家被另一名玩家杀死时,是否失去一颗心
looseHeartsToPlayer: true
# 是否在玩家被淘汰(心数耗尽)时发出公告
announceElimination: true
# 允许玩家在仅剩一颗心时仍可通过取用操作减少生命值
allowDyingFromWithdraw: true
# 当使用心形物品时,是否同时恢复相应数量的心数
healOnHeartUse: false
# 当使用心形物品时,是否播放图腾之影效果
playTotemEffect: false
# 在使用另一颗心之前需要等待的时间(毫秒)
heartCooldown: 0
# 玩家可被复活的次数。设置为 -1 表示无限次
maxRevives: -1
# === 禁用功能 ===
# 是否禁止使用不死图腾
preventTotems: false
# 是否禁用水晶 PvP
preventCrystalPVP: false
# 是否禁止在主世界使用重生锚
preventRespawnAnchors: false
# 是否禁止在下界和末地使用床
preventBeds: false
# 是否禁止在物品展示框中使用自定义物品
# 建议保持启用,否则玩家可能会复制物品
preventCustomItemsInItemFrames: true
# === 深度自定义 ===
# 仅当您希望在淘汰时添加自定义命令,且不希望玩家被封禁时才禁用此选项
disablePlayerBanOnElimination: false
# 击杀者是否在淘汰时获得一颗心
heartRewardOnElimination: true
# 在事件发生时执行自定义命令:
# 您可以使用 &player& 插入玩家名称
# 例如:tempban &player& banreason 1d
eliminationCommands:
# - "say &player& got eliminated"
# - "niceCommandtwo"
# 当玩家使用心形物品时执行的命令
heartuseCommands:
# - "say &player& used a heart item"
# 当玩家被复活时执行的命令
reviveuseCommands:
# - "say &player& revived &target&"
# 当玩家开始使用复活信标复活其他玩家时执行的命令
reviveStartCommands:
# - "broadcast &player& started reviving &target& at &location&"
gracePeriod:
# 是否启用宽限期
enabled: false
# 宽限期的持续时间(秒)
duration: 60
# 是否广播宽限期结束的通知
announce: true
# 宽限期结束时是否播放音效
playSound: true
# 在宽限期内,玩家是否能受到来自其他玩家的伤害
damageFromPlayers: false
# 在宽限期内,玩家是否能对其他玩家造成伤害
damageToPlayers: false
# 在宽限期内,玩家是否能使用心形物品
useHearts: false
# 在宽限期内,玩家是否会失去心形(如果设置为 false,击杀者也不会获得心形)
looseHearts: false
# 在宽限期内,玩家是否能获得心形
gainHearts: false
# 宽限期开始时执行的自定义命令
startCommands:
# - "say The grace period for &player& has started"
# 宽限期结束时执行的自定义命令
endCommands:
# - "say The grace period for &player& has ended"
heartGainCooldown:
# 玩家获得心形的冷却时间间隔。
enabled: false
# 冷却时间的时长,单位为毫秒
cooldown: 120000
# 如果玩家在冷却期间击杀他人,则将心形掉落至地面
dropOnCooldown: true
# 在冷却期间禁止拾取地面上的心形
preventPickup: true
antiAlt:
# 如果应启用反小号系统
enabled: true
# 如果可能,应记录小号的击杀尝试
logAttempt: true
# 如果可能,应阻止小号的击杀尝试
preventKill: false
# 如果检测到小号击杀尝试,应向玩家发送消息
sendMessage: false
# 添加自定义命令,在检测到可能的敌号击杀尝试时执行
# 你可以使用 &player& 插入玩家名称(命令对两名玩家都执行)
commands:
# - "say Please don't kill alts"
# - "ban &player& 1h"
webhook:
# 如果应在玩家被淘汰时发送网络钩子
elimination: false
# 如果应在玩家复活时发送网络钩子
revive: false
# 网络钩子的 URL
url: ""
storage.yml
# === 存储 ===
# 要使用的存储类型。你有以下选项:
# "SQLite"、"MySQL"、"MariaDB"
type: "SQLite"
# 此部分仅在使用 MySQL 数据库时相关
host: "localhost"
port: 3306
database: "lifestealz"
username: "root"
password: "password"
items.yml
# === 自定义物品 ===
# 在这里你可以修改关于自定义物品的所有内容
# 你可以在主配置文件 config.yml 中更改死亡时掉落的物品
defaultheart: # <- 这是在配方和权限中使用的物品 ID
# 这是在库存中显示的物品名称
name: "&cHeart"
# 描述文本是显示在库存中的物品描述
lore:
- "&7右键点击使用"
# - "这将是第二行"
# - "而这可能是第三行"
# 材质是显示在库存中的物品(在此处查找所有材质:https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html)
material: "NETHER_STAR"
# 如果设置为 true,物品将应用附魔光泽
enchanted: false
# 物品的自定义类型。你可以使用:
# - "heart" 用于心形物品
# - "revive" 用于复活物品
# - "revivebeacon" 用于复活信标物品 -> 此物品实际上必须是一个信标才能生效!
# - "none" 用于可用于制作且可像普通物品一样使用的自定义物品(例如,如果是末影珍珠,它仍然可以被投掷)
# - "non-usable" 用于可用于制作但不能像普通物品一样使用的自定义物品(例如,如果是末影珍珠,则无法被投掷)
customItemType: "heart"
# --- 心形物品设置 --- (仅当 customItemType 为 "heart" 时相关)
# 当 customItemType 为 "heart" 时,此值用于确定该物品提供多少颗心
customHeartValue: 1
# 玩家必须拥有的最少心数才能使用该物品(仅当 customItemType 为 "heart" 时相关)
minHearts: 0
# 玩家可拥有的最多心数以使用该物品(-1 表示无限)(仅当 customItemType 为 "heart" 时相关)
maxHearts: -1
# --- 心形物品设置结束 ---
# 如果此物品需要权限才能使用(lifestealz.item.defaultheart)
requirePermission: false
# 如果此物品应可制作
craftable: true
recipes:
# 你可以添加任意数量的配方
1:
# 每个物品代表合成表中的一个槽位
# 每行的第一个物品是合成表中最左侧的物品
# 如果你希望某个槽位为空,请使用 'AIR' 或 'empty'
# 如果你想使用简单材质,请使用材质名称(例如 "DIAMOND_BLOCK")。在此处查找所有材质:https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
# 如果你想使用其他自定义物品(如心形物品),请使用自定义物品名称(例如 "defaultheart")
# 如果你想使用方块或物品标签,请在标签前加上 '#'(例如 "#logs" 或 "#wool")
rowOne:
- "GOLD_BLOCK"
- "GOLD_BLOCK"
- "GOLD_BLOCK"
rowTwo:
- "OBSIDIAN"
- "NETHER_STAR"
- "OBSIDIAN"
rowThree:
- "DIAMOND_BLOCK"
- "DIAMOND_BLOCK"
- "DIAMOND_BLOCK"
# 如果物品不应被烧毁(不被火、岩浆、爆炸、仙人掌等摧毁)
invulnerable: false
# 如果物品在地面上放置 5 分钟后应消失
despawnable: true
# 如果此列表为空("[]"),则该物品在所有世界中可用
# 如果你想将该物品限制在特定世界,请在此处添加世界名称
whitelistedWorlds: []
sound:
enabled: true
sound: ENTITY_PLAYER_LEVELUP # 在此处查找所有声音:https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
volume: 1.0
pitch: 1.0
revive:
name: "&c复活信标"
lore:
- "&7放置即可使用"
# 如果 customItemType 为 "revivebeacon",材质必须是信标
material: "BEACON"
enchanted: true
customItemType: "revivebeacon"
# --- 复活信标设置 --- (仅当 customItemType 为 "revivebeacon" 时相关)
# 复活玩家所需的时间(秒)
reviveTime: 30
# 是否允许玩家在复活过程中破坏信标,从而中断复活过程
allowBreakingBeaconWhileReviving: true
# 信标周围的装饰材质(AIR 表示无材质)
decoyMaterial: "RED_STAINED_GLASS"
# 复活信标在复活期间是否显示附魔粒子效果
showEnchantParticles: true
# 复活信标在复活期间是否显示激光
showLaser: true
# 信标激光内部部分的材质
innerLaserMaterial: "RED_GLAZED_TERRACOTTA"
# 信标激光外部部分的材质
outerLaserMaterial: "RED_STAINED_GLASS"
# 复活信标在复活期间是否显示粒子光环
showParticleRing: true
# 粒子光环的颜色
# 可选值:WHITE, GRAY, RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE, PINK
particleColor: "RED"
# --- 复活信标设置结束 ---
requirePermission: false # (lifestealz.item.revive)
craftable: true
recipes:
1:
rowOne:
- "DIAMOND"
- "BEACON"
- "DIAMOND"
rowTwo:
- "OBSIDIAN"
- "defaultheart"
- "OBSIDIAN"
rowThree:
- "DIAMOND"
- "BEACON"
- "DIAMOND"
invulnerable: false
despawnable: true
whitelistedWorlds: []
sound:
enabled: false
sound: ENTITY_PLAYER_LEVELUP
volume: 1.0
pitch: 1.0
# 您可以添加任意数量的自定义物品
如果您希望合成配方中的某个槽位为空,请将方块名称替换为 AIR。
WorldGuard 标志
要设置自定义的 WorldGuard 标志,您需要使用 /rg flags 命令并滚动到最后一页。
在那里您可以设置以下标志:

如果您在服务器上使用 PlaceholderAPI,可以使用以下占位符:
- %lifestealz_hearts% - 用户拥有的生命值数量
- %lifestealz_maxhearts% - 用户最大可拥有生命值数量
- %lifestealz_health% - 玩家当前的生命值(向上取整的半颗心单位)
- %lifestealz_revived% - 玩家被复活的次数
- %lifestealz_isInGracePeriod% - 玩家是否处于保护期
- %lifestealz_gracePeriodRemaining% - 保护期剩余时间(秒)

如果您在插件设置方面需要帮助,或者发现了错误,您可以加入我的 Discord 这里。

LifeStealZ is a lifesteal SMP plugin, that allows you to steal hearts from other players, when you kill them. If a player has no more hearts, he is eliminated. You can craft additional hearts or a revive crystal. With this crystal, you can bring back eliminated teammates.
LifeStealZ offers a great amount of admin tools and is highly customizable. You can change every message and change everything about the custom items.


Main Features
- ✅ Stealing hearts
- ✅ Withdraw hearts
- ✅ Customizable heart items
- ✅ Custom crafting recipes
- ✅ Revive item
- ✅ Maximal and starter hearts
- ✅ Disable totems
- ✅ Disable crystal pvp
- ✅ Ingame recipe viewer
- ✅ PlaceholderAPI placeholders
- ✅ Custom WorldGuard flags
- ✅ Admin commands
- ✅ HEX colors and gradients support
- ✅ SQLite and MySQL support
Languages
- English (
en-US)
- German (
de-DE)
- Spanish (
es-ES)
- French (
fr-FR)
- Czech (
cs-CZ)
- Polish (
pl-PL)
- Vietnamese (
vi-VN)
- Chinese (Simplified) (
zh-CN)
- Russian (
ru-RU)
- Dutch (
nl-NL)
- Portuguese (
pt-BR)
- Japanese (
ja-JP)

- lifestealz.admin.reload - Allow to reload the plugin
- lifestealz.admin.setlife - Allow to set the amount of hearts, a player has
- lifestealz.admin.giveitem - Allow to give custom items to a player
- lifestealz.admin.eliminate - Allows to eliminate players with the
/eliminate command
- lifestealz.admin.revive - Allow a player to revive another player with the
/revive command
- lifestealz.bypassrevivelimit - Allow a player to bypass the revive limit
- lifestealz.withdraw - Allow a player to withdraw hearts (true by default)
- lifestealz.revive - Allow a player to revive others with a revive crystal (true by default)
- lifestealz.viewrecipes - Allow a player to view the custom recipes (true by default)
- lifestealz.help - Allow a player to access the help menu (true by default)
- lifestealz.viewhearts - Allow a player to view the amount of hearts (
/hearts) they have (true by default)
- lifestealz.maxhearts.[amount] - Set the max hearts for a player. This overwrites the maxHearts in the config

The conifuration is split into multiple files located at plugins/LifeStealZ/:
config.yml
# _ _ __ _____ _ _ ______
# | | (_)/ _| / ____| | | | |___ /
# | | _| |_ ___ | (___ | |_ ___ __ _| | / /
# | | | | _/ _ \ \___ \| __/ _ \/ _` | | / /
# | |____| | || __/ ____) | || __/ (_| | | / /__
# |______|_|_| \___| |_____/ \__\___|\__,_|_| /_____|
# === COLOR CODES ===
# This plugin supports old color codes like: &c, &l, &o, etc.
# It also supports MiniMessage, a more advanced way to format messages:
# https://docs.advntr.dev/minimessage/format.html
# With MiniMessage, you can add HEX colors, gradients, hover and click events, etc.
# === GENERAL SETTINGS ===
# If set to true, LifeStealZ will check for updates and let you know if there's a newer version
checkForUpdates: true
# Set the language to any code found in the "lang" folder (don't add the .yml extension)
# You can add your own language files. Use https://github.com/KartoffelChipss/LifeStealZ/tree/main/src/main/resources/lang/en-US.yml as a template
# If you want to help translating the plugin, please refer to this article: https://lsz.strassburger.dev/contributing/localization
# | en-US | de-DE | es-ES | fr-FR | cs-CZ | vi-VN | zh-CN | pl-PL | nl-NL | ru-RU
lang: "en-US"
# === HEART SETTINGS ===
# The amount of hearts a player has when joining for the first time
startHearts: 10
# The maximal amount of hearts, a player can have
# You can also set a per player limit using the lifestealz.maxhearts.[amount] permission or a per item limit in the items.yml file
maxHearts: 20
# The amount of hp a player should have after getting revived
reviveHearts: 1
# The amount of hearts the killer should gain and the victim should lose
heartsPerKill: 1
# The amount of hearts a player should lose when dying naturally
heartsPerNaturalDeath: 1
# The minimal amount of hearts. If a player gets to this amount of hearts, they will be eliminated.
# PLEASE ONLY CHANGE IF YOU KNOW WHAT YOU ARE DOING!
minHearts: 0
# This option will enforce the heart limit on admin commands like /lifestealz hearts <add, set> <player> <amount>
# Note that this
enforceMaxHeartsOnAdminCommands: false
# The custom items that should be used for the following scenarios (Must be an id from the items.yml)
heartItem:
# This item will be used for anything that is not listed below (mostly legacy)
default: "defaultheart"
# This item will be given when a user withdraws a heart
withdraw: "defaultheart"
# This item will be dropped when a player is killed by another player and "dropHeartsPlayer" is enabled
kill: "defaultheart"
# This item will be dropped when a player is killed by natural causes and "dropHeartsNatural" is enabled
naturalDeath: "defaultheart"
# This item will be dropped if a player is killed, the killer is still on cooldown and "heartGainCooldown.dropOnCooldown" is enabled
heartGainCooldown: "defaultheart"
# This item will be dropped if a player is killed, the killer has reached the max amount of hearts and "dropHeartsIfMax" is enabled
maxHearts: "defaultheart"
# === HEART BEHAVIOR SETTINGS ===
# If hearts should be dropped when killed by player
dropHeartsPlayer: false
# If hearts should be dropped when killed naturally
dropHeartsNatural: true
# If a heart should be dropped, when the killer already has the max amount of hearts
dropHeartsIfMax: true
# If a player should lose a heart, when dying to hostile mobs or falldamage, lava, etc
looseHeartsToNature: true
# If a player should lose a heart, when being killed by another player
looseHeartsToPlayer: true
# Whether it should be announced, when a player got eliminated (has no more hearts)
announceElimination: true
# Allows players to withdraw a heart, even if they only have one left
allowDyingFromWithdraw: true
# If a player should also heal the appropriate amount of hearts, when using a heart item
healOnHeartUse: false
# If the totem effect should be played, when you use a heart
playTotemEffect: false
# The time you have to wait, before you can use another heart in Milliseconds
heartCooldown: 0
# How many times a player can be revived. Set to -1 to make it infinite
maxRevives: -1
# === Disabling Features ===
# If the use of totems of undying should be prevented
preventTotems: false
# If crystalpvp should be disabled
preventCrystalPVP: false
# If the use of respawn anchors in the overworld should be prevented
preventRespawnAnchors: false
# If the use of beds in the nether and end should be prevented
preventBeds: false
# If the use of custom items in item frames should be prevented
# It is recommended to leave this enabled, as people may be able to duplicate items otherwise
preventCustomItemsInItemFrames: true
# === Extensive Customization ===
# Only disable this option if you want to add custom commands on elimination and don't want the player to get banned
disablePlayerBanOnElimination: false
# If the killer should gain a heart on elimination
heartRewardOnElimination: true
# Execute custom commands on events:
# You can use &player& to insert the player name
# For example: tempban &player& banreason 1d
eliminationCommands:
# - "say &player& got eliminated"
# - "niceCommandtwo"
# These commands will be executed when a player uses a heart item
heartuseCommands:
# - "say &player& used a heart item"
# These commands will be executed when a player has been revived
reviveuseCommands:
# - "say &player& revived &target&"
# These commands will be executed when a player starts reviving another player using a revive beacon
reviveStartCommands:
# - "broadcast &player& started reviving &target& at &location&"
gracePeriod:
# If a grace period should be enabled
enabled: false
# The time in seconds, the grace period should last
duration: 60
# If the end of the grace period should be announced
announce: true
# If a sound should be played, when the grace period ends
playSound: true
# Should a player be able to take damage from players during the grace period
damageFromPlayers: false
# Should a player be able to deal damage to players during the grace period
damageToPlayers: false
# Should a player be able to use hearts during the grace period
useHearts: false
# Should a player be able to loose hearts during the grace period (if set to false, the killer will also not gain a heart)
looseHearts: false
# Should a player be able to gain hearts during the grace period
gainHearts: false
# Custom commands to be executed when the grace period starts
startCommands:
# - "say The grace period for &player& has started"
# Custom commands to be executed when the grace period ends
endCommands:
# - "say The grace period for &player& has ended"
heartGainCooldown:
# A cooldown for how often people can gain a heart.
enabled: false
# How long the cooldown should be in Milliseconds
cooldown: 120000
# Drops the heart on the ground if a player kills someone, while still on cooldown
dropOnCooldown: true
# Prevents picking up hearts from the groun while on cooldown
preventPickup: true
antiAlt:
# If the anti alt system should be enabled
enabled: true
# If possible alt kill attempts should be logged
logAttempt: true
# If possible alt kill attempts should be prevented
preventKill: false
# If a message should be sent to the player, when an alt kill attempt is detected
sendMessage: false
# Add custom comamnds, to be executed when a possible alt kill attempt is detected
# You can use &player& to insert the player name (commands are executed for both players)
commands:
# - "say Please don't kill alts"
# - "ban &player& 1h"
webhook:
# If a webhook should be sent, when a player is eliminated
elimination: false
# If a webhook should be sent, when a player is revived
revive: false
# The URL of the webhook
url: ""
storage.yml
# === Storage ===
# The type of storage to use. You have the following options:
# "SQLite", "MySQL", "MariaDB"
type: "SQLite"
# This section is only relevant if you use a MySQL database
host: "localhost"
port: 3306
database: "lifestealz"
username: "root"
password: "password"
items.yml
# === Custom Items ===
# Here you can modify everything about the custom items
# You can change which item is dropped on death in the main config.yml
defaultheart: # <- This is the item id that can be used in recipes and for permissions
# This is the name of the item that is displayed in the inventory
name: "&cHeart"
# The lore is the description of the item that is displayed in the inventory
lore:
- "&7Rightclick to use"
# - "This would be a second line"
# - "And this possibly a third line"
# The material is the item that is displayed in the inventory (Find all materials here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html)
material: "NETHER_STAR"
# If set to true, the enchant glint will be applied to the item
enchanted: false
# Custom item type for the item. You can use:
# - "heart" for a heart item
# - "revive" for a revive item
# - "revivebeacon" for a revive beacon item -> This item must actually be a beacon to work!
# - "none" for a custom item that can be used for crafting and can be used as a normal item (e.g. if it is an enderpearl it still can be thrown)
# - "non-usable" for a custom item that can be used for crafting and cannot be used as a normal item (e.g. if it is an enderpearl it cannot be thrown)
customItemType: "heart"
# --- Heart Item Settings --- (only relevant if customItemType is "heart")
# When customItemType is "heart", this value is used to determine how many hearts the item gives
customHeartValue: 1
# The minimum amount of hearts a player must have to use this item (only relevant if customItemType is "heart")
minHearts: 0
# The maximum amount of hearts a player can have to use this item (-1 for infinite) (only relevant if customItemType is "heart")
maxHearts: -1
# --- End of Heart Item Settings ---
# If this item requires a permission to be used (lifestealz.item.defaultheart)
requirePermission: false
# true if this item should be craftable
craftable: true
recipes:
# You can add as many recipes as you want
1:
# Every item represents one slot in the crafting table
# The first item in a row is the left most item in the crafting table
# If you want a slot to be blank, use 'AIR' or 'empty'
# If you want to use a simple material, use the material name (e.g. "DIAMOND_BLOCK"). Find all materials here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
# If you want to use other custom item (like hearts) use the custom item name (e.g. "defaultheart")
# If you want to use block or item tags, use the tag with a '#' in front (e.g. "#logs" or "#wool")
rowOne:
- "GOLD_BLOCK"
- "GOLD_BLOCK"
- "GOLD_BLOCK"
rowTwo:
- "OBSIDIAN"
- "NETHER_STAR"
- "OBSIDIAN"
rowThree:
- "DIAMOND_BLOCK"
- "DIAMOND_BLOCK"
- "DIAMOND_BLOCK"
# If the item should be burnable (Not destroyed by fire, lava, explosions, cactus, etc.)
invulnerable: false
# If the item should despawn after laying on the ground for 5 minutes
despawnable: true
# If this list is empty ("[]"), the item is available in all worlds
# If you want to limit the item to specific worlds, add the world names here
whitelistedWorlds: []
sound:
enabled: true
sound: ENTITY_PLAYER_LEVELUP # Find all sounds here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
volume: 1.0
pitch: 1.0
revive:
name: "&cRevive Beacon"
lore:
- "&7Place down to use"
# The material has to be a beacon if customItemType is "revivebeacon"
material: "BEACON"
enchanted: true
customItemType: "revivebeacon"
# --- Revive Beacon Settings --- (only relevant if customItemType is "revivebeacon")
# The time in seconds it takes to revive a player
reviveTime: 30
# If players should be able to break the beacon while reviving, interrupting the revive process
allowBreakingBeaconWhileReviving: true
# The material around the beacon (AIR for no material)
decoyMaterial: "RED_STAINED_GLASS"
# If the revive beacon should be surrounded by enchant particles
showEnchantParticles: true
# If the revive beacon should show a laser while reviving
showLaser: true
# The material of the inner part of the beacon laser
innerLaserMaterial: "RED_GLAZED_TERRACOTTA"
# The material of the outer part of the beacon laser
outerLaserMaterial: "RED_STAINED_GLASS"
# If the revive beacon should show a particle ring while reviving
showParticleRing: true
# The color of the particle ring
# possible values: WHITE, GRAY, RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE, PINK
particleColor: "RED"
# --- End of Revive Beacon Settings ---
requirePermission: false # (lifestealz.item.revive)
craftable: true
recipes:
1:
rowOne:
- "DIAMOND"
- "BEACON"
- "DIAMOND"
rowTwo:
- "OBSIDIAN"
- "defaultheart"
- "OBSIDIAN"
rowThree:
- "DIAMOND"
- "BEACON"
- "DIAMOND"
invulnerable: false
despawnable: true
whitelistedWorlds: []
sound:
enabled: false
sound: ENTITY_PLAYER_LEVELUP
volume: 1.0
pitch: 1.0
# You can add as many custom items as you want
If you want a slot in the crafting recipe to be blank, replace the block name with AIR.
WorldGuard Flags
To set a custom worldguard flag, you have to use /rg flags and scroll to the last page.
There you can set the following flags:
- heartloss - Allow heart loss in this region

If you are using PlaceholderAPI on your server, you can use the following placeholders:
- %lifestealz_hearts% - The amount of hearts a user has
- %lifestealz_maxhearts% - The maximum amount of hearts a user can have
- %lifestealz_health% - The current health, that the player has (half hearts rounded up)
- %lifestealz_revived% - The amount of times a player has been revived
- %lifestealz_isInGracePeriod% - If the player is in the grace period
- %lifestealz_gracePeriodRemaining% - The remaining time of the grace period in seconds

If you need help with the setup of the plugin, or found a bug, you can join my discord here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧