Lifesteal-Plugin

插件

· 作者 theTWIXhunter

这是一个基础但完全可自定义的 Lifesteal 插件,我制作它是由于当时没有其他插件能满足我所需要的自定义需求。

0 本站下载 0 关注 更新于 8 个月前

最新 1.1.2 · 1.21.11 · Bukkit / Paper

一键开服(送7天)

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 文件夹中。

安装

  1. 构建插件或下载 JAR 文件
  2. 将 JAR 文件放入服务器的 plugins 文件夹中
  3. 重启服务器
  4. 在 plugins/LifeSteal/config.yml 中配置插件
  5. 重载或重启服务器

作者

me.thetwixhunter

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源