LifeSteal 插件
由 theTWIXhunter 为 Paper 1.21 及以上版本构建的轻量级吸血(生命窃取)插件。
功能
- 心跳窃取:当一名玩家击杀另一名玩家时,受害者会失去 1 颗心,而击杀者获得这颗心。
- 淘汰系统:当玩家生命值低于 1 颗心时,执行自定义命令。
- 世界限定:仅在配置的世界中生效。
- 可配置:完全通过 config.yml 进行自定义。
- /giftheart:玩家可以赠送其他玩家心脏;向已被淘汰的玩家赠送心脏可以使其复活。
默认配置
# +--------------------------------------------------------------------------+
# | ------====== Lifesteal PLUGIN ======------ |
# | --- By TheTWIXhunter --- |
# +--------------------------------------------------------------------------+
# | | |
# | More information about this config file can be found here: (WIP) |
# | https://thetwixhunter.nekoweb.org/lifesteal/guides/configuration.html |
# | |
# +--------------------------------------------------------------------------+
# +--------------------------------------------------------------------------+
# | ------====== GENERAL SETTINGS ======------ |
# +--------------------------------------------------------------------------+
# Messages file (located in the plugin's folder)
# Set to 'messages.yml' to use the default messages file
# You can create custom message files and reference them here
messages-file: "messages.yml"
# Worlds where lifesteal is enabled
enabled-worlds:
- world
- world_nether
- world_the_end
# +--------------------------------------------------------------------------+
# | ------====== ELIMINATION & REVIVE SETTINGS ======------ |
# +--------------------------------------------------------------------------+
# Commands to run when a player reaches the elimination threshold (with operator permissions)
# Use %player% placeholder for the player's name
elimination-commands:
- "kick %player% You have been eliminated!"
- "broadcast %player% has been eliminated from the server!"
- "ban %player% You ran out of hearts!" # REMOVE IF YOU DON'T WANT PLAYERS TO BE BANNED UPON ELIMINATION
# Revive settings
# Commands to run when a player is revived by an operator
# Users can revive other users by gifting them hearts.
revive:
# Hearts to set when a player is revived by an opertator (using the /lifestealplugin revive command.)
hearts: 10.0
# Commands to run when a player is revived (with operator permissions)
# Use %player% placeholder for the player's name
commands:
- "broadcast %player% has been revived!"
- "pardon %player% You have been revived by an operator!" # REMOVE IF YOU DON'T WANT PLAYERS TO BE UNBANNED UPON REVIVAL
# +--------------------------------------------------------------------------+
# | ------====== HEARTS SETTINGS ======------ |
# +--------------------------------------------------------------------------+
# | The settings below are in hearts, not health points. |
# | (1 heart = 2 health points.) |
# | Please always check this to avoid issues with heart values. |
# | You can use decimal values for hearts but only .5 increments |
# | (e.g., 0.5 = 1 health point, Minecraft's minimum). |
# +--------------------------------------------------------------------------+
hearts:
# Amount of hearts a new player starts with
starting: 10.0
# Amount of hearts gained/lost per kill (1 heart = 2 health points)
amount: 1.0
# Hearts at or below which a player gets eliminated (0.5 = 1 health point, Minecraft's minimum)
eliminate-at: 0.5
# Maximum hearts a player can have
maximum: 20.0
# Heart crafting recipe
crafting:
# Enable or disable heart crafting
enabled: true
# Recipe pattern (3x3 crafting grid)
# Use material names from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
recipe:
row1: "DIAMOND,GOLD_INGOT,DIAMOND"
row2: "REDSTONE,NETHER_STAR,REDSTONE"
row3: "DIAMOND,EMERALD,DIAMOND"
构建
运行 mvn clean package 以构建插件。编译后的 JAR 文件将位于 target 文件夹中。
安装
- 构建插件或下载 JAR 文件
- 将 JAR 文件放入服务器的
plugins文件夹中 - 重启服务器
- 在
plugins/LifeSteal/config.yml中配置插件 - 重载或重启服务器
作者
me.thetwixhunter
你是这个资源的作者?登录后可认领此资源。
相似资源
使床在所有维度中爆炸的模组
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为 Armor Poser 模组添加兼容性
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
在 Minecraft 中加入“最后一击”、“第二次机会”和“最后喘息”机制!从高处坠落时,你将拥有 0.5 HP 而不是直接死亡;当生命值较低时,增强你的能力。
评论 0
登录后参与评分
还没有评论,来抢沙发吧