插件描述: H1
H1 是一款 Minecraft 服务器插件,玩家每次死亡时会扣除一颗心。
如果玩家失去了所有的心(生命),将执行一个命令,该命令可配置。例如,你可以封禁该玩家。警告:默认情况下,它仅显示一条消息,提示玩家已失去所有生命。
你可以发挥创意使用此插件:出售游戏货币或真实货币以获取生命值,或者设计一个奖励生命值的任务。你也可以选择硬核模式并永久封禁玩家,但嘿,这是 Minecraft——并非很多玩家喜欢自虐。发挥你的想象力吧。
功能特性:
- 玩家数据存储在本地 SQLite 数据库中。
- 所有消息均可配置。
- 你可以通过命令给予、设置或恢复玩家的生命值。
- 存在上限:不能给予玩家超过 20 个半颗心(即 10 颗完整的心)。
- 包含一个占位符,用于显示玩家拥有的生命值数量。
命令:
/h1 give <player> <amount> – 向玩家添加生命值(最多 10 颗)。
/h1 set <player> <amount> – 将玩家的生命值设置为特定数值(最多 10 颗)。
/h1 recover <player> – 将玩家的生命恢复到最大值。适用于自动恢复场景。
/h1 remove <player> <amount> – 从玩家身上移除生命值。(生命值不能低于零。)
/h1 reload – 重载插件。
权限:
h1.reload – 允许重载插件。
h1.set – 授予使用 /h1 set 命令的权限。
h1.give – 授予使用 /h1 give 命令的权限。
h1.recover – 授予使用 /h1 recover 命令的权限。
h1.remove – 授予使用 /h1 remove 命令的权限。
占位符:
需要 PlaceholderAPI。
%h1_lives% – 显示玩家拥有的生命数量(纯数字)。
配置文件
language: "en" # en, ru
lives:
# 新玩家默认的生命值(心)数量
default: 10
# 当玩家生命值耗尽时执行的命令。
# 你可以使用 %player% 占位符,它将被替换为玩家的名字。
command: "say Player %player% has lost all their lives!"
database:
# SQLite 数据库文件名。
# 如果文件不存在,将在插件文件夹中创建该文件。
file: "players.db"
消息配置文件:
prefix: "§6[H1] §r"
command:
usage: "Usage: /h1 <give|set|remove|recover|reload> <player> <amount>"
unknown: "Unknown command!"
reload:
success: "Plugin reloaded successfully!"
give:
success: "You gave %player% %amount% hearts."
received: "You received %amount% hearts."
max: "The player already has the maximum number of hearts (%max% hearts)."
limited: "You can only give the player %available% hearts to avoid exceeding the limit of %max% hearts."
remove:
success: "You removed %amount% hearts from %player%."
player:
not:
found: "Player not found!"
no:
permission: "You don't have permission to use this command!"
life:
info: "You now have %lives%."
recover:
success: "You restored %player%'s life to the maximum."
number:
format:
error: "Invalid number: %input%"
安装指南:
- 下载插件。
- 停止你的服务器。
- 将
.jar 文件放入 /plugins/ 文件夹中。
- 启动服务器。
- 完成。
要启用占位符,请安装 PlaceholderAPI。
Plugin Description: H1
H1 is a Minecraft server plugin that removes one heart from a player each time they die.
If a player loses all their hearts (lives), a command is executed, which you can configure. For example, you can ban the player. WARNING: by default, it only displays a message that the player has lost all their lives.
You can use this creatively: sell hearts for in-game currency or real money, or make a quest that rewards hearts. You can also go hardcore and ban players permanently, but hey, it's Minecraft — not many players are into masochism. Use your imagination.
Features:
- Player data is stored in a local SQLite database.
- All messages are configurable.
- You can give, set, or restore player hearts via command.
- There’s a limit: players can’t be given more than 20 half-hearts (10 full hearts).
- Includes a placeholder that displays the number of hearts a player has.
Commands:
/h1 give <player> <amount> – Adds hearts to a player (up to 10 max).
/h1 set <player> <amount> – Sets the player’s hearts to a specific value (up to 10).
/h1 recover <player> – Restores the player’s lives to the maximum. Ideal for auto-recovery.
/h1 remove <player> <amount> – Removes hearts from the player. (Lives can't go below zero.)
/h1 reload – Reloads the plugin.
Permissions:
h1.reload – Allows plugin reload.
h1.set – Grants access to the /h1 set command.
h1.give – Grants access to the /h1 give command.
h1.recover – Grants access to the /h1 recover command.
h1.remove – Grants access to the /h1 remove command.
Placeholders:
Requires PlaceholderAPI.
%h1_lives% – Displays the number of lives the player has (number only).
Configuration
language: "en" # en, ru
lives:
# Default number of lives (hearts) for a new player
default: 10
# Command to execute when a player runs out of lives.
# You can use the %player% placeholder, which will be replaced with the player's name.
command: "say Player %player% has lost all their lives!"
database:
# SQLite database file name.
# The file will be created in the plugin folder if it doesn't exist.
file: "players.db"
Messages file:
prefix: "§6[H1] §r"
command:
usage: "Usage: /h1 <give|set|remove|recover|reload> <player> <amount>"
unknown: "Unknown command!"
reload:
success: "Plugin reloaded successfully!"
give:
success: "You gave %player% %amount% hearts."
received: "You received %amount% hearts."
max: "The player already has the maximum number of hearts (%max% hearts)."
limited: "You can only give the player %available% hearts to avoid exceeding the limit of %max% hearts."
remove:
success: "You removed %amount% hearts from %player%."
player:
not:
found: "Player not found!"
no:
permission: "You don't have permission to use this command!"
life:
info: "You now have %lives%."
recover:
success: "You restored %player%'s life to the maximum."
number:
format:
error: "Invalid number: %input%"
Installation:
- Download the plugin.
- Stop your server.
- Drop the
.jar file into your /plugins/ folder.
- Start the server.
- Done.
To enable placeholders, install PlaceholderAPI.
评论 0
登录后参与评分
还没有评论,来抢沙发吧