HardcoreLivesPlugin
一个允许你在生存服务器上给予玩家有限生命数的插件。
只需将 jar 文件放入你的 plugins 文件夹即可使用。
注意: 服务器实际上不能处于硬核模式,否则插件无法正常工作。
在硬核模式下,无论是否安装插件,玩家死亡时都会被踢出服务器。请确保在 server.properties 中设置 hardcore=false。
注意(2): 本插件基于 Spigot 构建,并使用 PaperSpigot 进行了测试。不支持 Spigot 的非官方分支。如果你寻求支持,将被要求在这些官方服务器发行版之一上重现你的问题。
命令:
/hl - 显示帮助信息
/hl lives - 检查你拥有的生命数
/hl scoreboard - 切换你自己的生命计分板显示。
/hl lives buy <number> - 按照配置文件中设定的购买价格购买生命数。
这不会允许你将生命数降至 1 以下。需要 Vault
/hl lives sell <number> - 按照配置文件中设定的出售价格出售生命数。
这不会允许你将生命数降至 1 以下。需要 Vault
/hl giveLives <player> <number> - 转移生命数给其他玩家。
这不会允许你将生命数降至 1 以下。
/hl lives <player> - 检查其他玩家拥有的生命数
/hl resetAll - 重置所有玩家数据和生命计数
/hl reload - 从配置文件重新加载插件
/hl reset <player> - 重置指定玩家的数据
/hl config <key> <value> - 更改配置文件中指定键的值
/hl setLives <player> <lives> - 更改玩家剩余的生命数
/hl addLives <player> <lives> - 增加玩家的生命数。
请注意,如果设置了最大生命数,上述两个命令不会超过该最大值。
/hl setMaxLives <player> <max> - 更改玩家可拥有的最大生命数(默认值:3;设置为 0 表示无上限)
/hl scoreboardSlot <SIDEBAR/PLAYER_LIST/BELOW_NAME> - 更改插件计分板的显示位置。
注意: 这是全局服务器范围的更改。
/hl save - 将所有玩家数据保存到磁盘。当玩家离开服务器或服务器正常关闭时,也会自动为单个玩家保存数据。
/hl autosave <number> <TimeUnit> - 设置插件的自动保存周期。时间单位参数可以是以下任意一种:MICROSECONDS、MILLISECONDS、SECONDS、MINUTES、HOURS、DAYS。不建议将此值设置为低于 10 秒。默认值: 5 分钟
配置:
startingLives - 整数 : 玩家首次加入服务器时的初始生命数。
默认值:3
allowTotemOfUndying - 布尔值 : 设置为 false 会使不死图腾失效:
玩家在受到致命伤害时将直接死亡。默认值:true
spectateWhenNoMoreLives - 布尔值 : 设置为 false 会导致玩家在耗尽生命数后被踢出服务器。
默认值:true
autosaveInterval - 整数 : 设置玩家数据的自动保存间隔。与 autosaveUnit 配合使用。不建议将这些值设置为低于 10 秒。此值无法通过 /hl config 设置。
autosaveUnit - 字符串:以下任意一种:MICROSECONDS、MILLISECONDS、SECONDS、MINUTES、HOURS、DAYS。
此值无法通过 /hl config 设置。
allowBuyingLives - 布尔值 : 设置为 true 允许拥有相应权限的玩家使用 /hl lives buy 命令
allowSellingLives - 布尔值 : 设置为 true 允许拥有相应权限的玩家使用 /hl lives sell 命令
allowGivingLives - 布尔值 : 设置为 true 允许拥有相应权限的玩家使用 /hl lives give 命令
lifeBuyPrice - 浮点数 : 设置所有玩家单个生命的购买价格。
lifeSellPrice - 浮点数 : 设置所有玩家单个生命的出售价格。
scoreboardDisplaySlot - 字符串 : 设置生命计分板的显示位置。有效值为 SIDEBAR、
BELOW_NAME 或 PLAYER_LIST。
loseLifeOnPvpOnly - 布尔值 : 设置为 true 会使玩家仅在 PVP 战斗中死亡时扣除生命数。
默认值:false
权限
hardcorelives.lives.others
hardcorelives.lives.buy
hardcorelives.lives.sell
hardcorelives.lives.give
hardcorelives.reset
hardcorelives.resetAll
hardcorelives.scoreboard
hardcorelives.scoreboard.manage
hardcorelives.reload
hardcorelives.config
hardcorelives.setLives
hardcorelives.bypass
hardcorelives.save
hardcorelives.autosave
占位符:
%hardcorelivesplugin_lives%
%hardcorelivesplugin_max_lives%
其他信息:
- 即使管理员玩家(OP)生命数为零,也不会被强制进入旁观者模式。这是因为检查生命数时会检查
hardcorelives.bypass 权限,而管理员玩家始终拥有此权限。
- 重置或手动覆盖玩家的生命数不会将其游戏模式改回生存模式。请务必使用
/gamemode survival
HardcoreLivesPlugin
A plugin that allows you to give players limited lives on a survival server.
Simply drop the jar into your plugins folder and you're ready to go.
Note: The server must not actually be in hardcore mode for the plugin to work.
Hardcore will ban players on death regardless of plugins. Please ensure hardcore=false
in your server.properties.
Note (2): This plugin was built on top of Spigot and tested with PaperSpigot. Unofficial forks of Spigot are NOT
supported and you will be asked to reproduce your issue on one of these official server distributions
if you are seeking support.
Commands:
/hl - Show Help
/hl lives - Check the number of lives you have
/hl scoreboard - Toggles the lives scoreboard for yourself.
/hl lives buy <number> - Purchase lives at the buy price set by the config.
This will not allow you to leave yourself with less than 1 life. Requires Vault
/hl lives sell <number> - Sell lives at the sell price set by the config.
This will not allow you to leave yourself with less than 1 life. Requires Vault
/hl giveLives <player> <number> - Transfer lives to another player.
This will not allow you to leave yourself with less than 1 life.
/hl lives <player> - Check the number of lives another player has
/hl resetAll - Reset all player data and life counts
/hl reload - Reload the plugin from config
/hl reset <player> - Reset the data for the given player
/hl config <key> <value> - change the config file for the given key
/hl setLives <player> <lives> - change the number of lives a player has remaining
/hl addLives <player> <lives> - add to a player's life count.
Note that the above 2 commands will not exceed the maximum life count if one is set.
/hl setMaxLives <player> <max> - change the maximum number of lives a player can have (default: 3; set to 0 for no max)
/hl scoreboardSlot <SIDEBAR/PLAYER_LIST/BELOW_NAME> - change the scoreboard display slot for the plugin.
NOTE: this is a server wide change.
/hl save - Saves all player data to disk. This also happens automatically for a single player when a player leaves the
server or the server is shut down gracefully.
/hl autosave <number> <TimeUnit> - Sets the auto save period for the plugin. The Time Unit argument can be any of the
following: MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS. It is not recommended you set this to
less than 10 seconds. Default: 5 minutes
Config:
startingLives - Integer : Number of lives a player starts with when they first join the server.
Default: 3
allowTotemOfUndying - Boolean : Setting to false prevents totem of undying from working:
players will always die upon taking lethal damage. Default: true
spectateWhenNoMoreLives - Boolean : Setting to false will cause players to be banned once they run out of lives.
Default: true
autosaveInterval - Integer : Sets the interval that player data is autosaved. Works in conjunction with
autosaveUnit. It is not recommended you set these values lower than 10 seconds. This cannot be set by /hl config.
autosaveUnit - String: Any of the following: MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS.
This cannot be set by /hl config.
allowBuyingLives - Boolean : Setting to true allows players with proper permissions to use /hl lives buy
allowSellingLives - Boolean : Setting to true allows players with proper permissions to use /hl lives sell
allowGivingLives - Boolean : Setting to true allows players with proper permissions to use /hl lives give
lifeBuyPrice - Float : Sets the buy price of a single life for all players.
lifeSellPrice - Float : Sets the sell price of a single life for all players.
scoreboardDisplaySlot - String : Sets the display slot of the lives scoreboard. Valid values are SIDEBAR,
BELOW_NAME, or PLAYER_LIST.
loseLifeOnPvpOnly - Boolean : Setting to true causes players to only lose lives when they die in PVP combat.
Default: false
Permissions
hardcorelives.lives.others
hardcorelives.lives.buy
hardcorelives.lives.sell
hardcorelives.lives.give
hardcorelives.reset
hardcorelives.resetAll
hardcorelives.scoreboard
hardcorelives.scoreboard.manage
hardcorelives.reload
hardcorelives.config
hardcorelives.setLives
hardcorelives.bypass
hardcorelives.save
hardcorelives.autosave
Placeholders:
%hardcorelivesplugin_lives%
%hardcorelivesplugin_max_lives%
Other info:
- Opped players will not be forced into spectator mode even if they have zero lives. This
is due to the fact that checking lives checks the
hardcorelives.bypass permission, which ops always have.
- Resetting or manually overriding a player's lives does not change their gamemode back. Be sure to
/gamemode survival
评论 0
登录后参与评分
还没有评论,来抢沙发吧