UnhealthyDeath
摘要
此插件可防止玩家通过自杀来恢复食物/生命值。
每次玩家死亡时,其生命值和饥饿值将被设置为一个可配置的数量。
指标
此插件使用 Hidendra 的插件指标系统。您可以在 <yourPluginFolder>/PluginMetrics/config.yml 中退出收集。
将收集以下信息:
- 唯一标识符
- 服务器的 Java 版本
- 服务器是否处于离线或在线模式
- 插件的版本
- 服务器的实现方式和游戏版本
- 操作系统版本/名称和架构
- CPU 的核心数量
- 在线玩家数量
- 指标版本
- 您的在线模式设置
- 您的服务器位置
安装
将插件放入您的 plugins 文件夹并启动服务器。默认配置文件将自动生成,并可根据您的需求进行修改。
用法与配置
您可以添加任意数量的组。要将玩家分配到某个组,您需要赋予他权限
"unhealthydeath.group.<groupname>"。
如果玩家未分配任何组,则会使用“default”组。如果该组不存在,则不会发生任何操作。
group:
default:
#玩家重生时拥有的生命值数量
sethealth: 10.0
#set - 将饥饿值设置为 foodamount 指定的值
#keep - 保持当前饥饿值并减去 foodamount 的值
foodchange: keep
#新的饥饿值或旧饥饿值减去的数值,详见上文
foodamount: 10
#仅在保持饥饿值(keep)模式下生效
#重生后允许的最低饥饿值
minfood: 15
#此组适用的世界列表,若为空则表示在所有世界中均适用
#(在跨世界管理中,权限配置可能更为合适)
worlds: []
源码
在 GitHub 上获取源码

UnhealthyDeath
Summary
This plugin prevents your players from refilling their food/healthbar by killing themselfs.
Everytime a player dies, his health and foodlevel will be set to a configurable amount.
Metrics
This plugin utilises Hidendra's plugin metrics system. You can opt-out under <yourPluginFolder>/PluginMetrics/config.yml
The following informations will be collected:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's implementation and game version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- Your online-mode
- Your server location
Installation
Put the plugin into your plugins folder and start the server. The default config file will be generated and can be modified after your wishes.
Usage and Config
You can add as many groups as you want. To assign a player to a group you need to give him the permission
"unhealthydeath.group.<groupname>".
If a player has no group assigned he'll use the "default" group. If this group does not exist, nothing will happen.
group:
default:
#the amount of health a player respawns with
sethealth: 10.0
#set - set foodlevel to foodamount valuel
#keep - keep the current foodlevel subtracted by foodamount
foodchange: keep
#the new foodlevel or the value the old foodlevel is subtraced by, see above
foodamount: 10
#only applies when keeping the foodlevel
#the minimum foodlevel allow after respawning
minfood: 15
#the worlds this group is valid in, if empty it is used in every world
#(the permissions may be better for multiworld handling)
worlds: []
Source
Get the Source on GitHub

评论 0
登录后参与评分
还没有评论,来抢沙发吧