DeathDropPercent 是一个改变玩家死亡行为的插件。
玩家死亡后,只会掉落其物品栏中一定百分比的槽位。这些槽位是随机选择的。
示例:如果将 percentToDrop 设置为 0.5(即 50%),玩家将会失去一半的物品栏槽位。
[注意] percentToDrop 可在 config.yml 文件中进行编辑。
[警告] 如果世界中的 keepInventory 规则设置为 true,该插件不会影响玩家死亡后的物品栏行为。
? 命令
/ddc info — 显示插件的当前状态以及死亡后掉落物品的当前百分比。
/ddc enable — 启用插件。
/ddc disable — 禁用插件。
/ddc reload — 重新加载配置文件。
❗ 权限
deathdroppercent.admin - 允许使用 /ddc 命令
deathdroppercent.drop - 玩家是否应该在死亡时掉落物品?(默认为 true)
? 默认配置
# 当设置为 false 时,服务器将具有默认的死亡行为
isEnabled: true
# 死亡时掉落的物品栏默认百分比(范围从 0.0 到 1.0)
# 物品栏总共有 41 个槽位,包括盔甲和副手
percentToDrop: 0.5
# 针对特定权限的重写百分比
# 重要提示:如果您想为某些权限启用自定义百分比,
# 别忘了将这些权限添加到组/玩家中,
# 例如:deathdroppercent.custom.vip(并且别忘了取消注释下面的代码)
customPercents:
# 'vip': 0.4
# 'mvp': 0.2
☂ 入门指南
[重要] 在开始之前,请确保插件的版本与您的服务器版本兼容。
- 从 Releases 标签页或 Modrinth 页面下载插件。
- 将下载的
.jar 文件放入服务器的 /plugins 文件夹中。
- 重启服务器或输入
reload 命令。
DeathDropPercent is a plugin that changes the behavior of a player's death.
After death, a player drops only a certain percentage of his inventory slots. Slots are chosen randomly.
Example: if percentToDrop is set to 0.5 (which means 50%), the player will lose half of his inventory slots.
[NOTE] The percentToDrop can be edited in the config.yml file.
[CAUTION] If the keepInventory rule in the world is set to true, the plugin won't affect the player's inventory behavior after death.
? Commands
/ddc info — shows the current state of the plugin and the current percentage of items to drop after death.
/ddc enable — enables the plugin.
/ddc disable — disables the plugin.
/ddc reload — reloads the config.
❗ Permissions
deathdroppercent.admin - Allows to use /ddc command
deathdroppercent.drop - Is the player supposed to drop items on death? (true by default)
? Default config
# When set to false, server will have default death behaviour
isEnabled: true
# Default percentage of inventory to drop on death (from 0.0 to 1.0)
# Inventory has 41 slots in total, including armor and second hand
percentToDrop: 0.5
# Overridden percentages for certain permissions
# IMPORTANT: If you want to enable custom percents for certain permissions,
# don't also forget to add these permissions to groups/players
# like that: deathdroppercent.custom.vip (and don't forget to uncomment the code below)
customPercents:
# 'vip': 0.4
# 'mvp': 0.2
☂ Getting started
[IMPORTANT] Before getting started, make sure that the plugin's version is compatible with your server version.
- Download the plugin from Releases tab or from Modrinth page.
- Put the downloaded
.jar into /plugins folder of your server.
- Restart your server or enter
reload command.
评论 0
登录后参与评分
还没有评论,来抢沙发吧