Better Keep Inventory
Better Keep Inventory 是一个插件,它在“保留物品栏”(Keep Inventory)游戏规则的构想基础上构建了更多功能。 该游戏规则非常有限,唯一的配置选项是启用/禁用它,以及使其在特定世界中生效。 本插件可以为你处理这些场景以及更多内容!支持按世界进行配置,并在特定场景下(如自然死亡、生物攻击致死或玩家击杀)保留你的物品栏。 无论你的物品是被保留还是掉落,完全由你决定!
功能
- 按世界进行配置
- 权限管理
- 无需重启服务器即可重载配置文件
- 支持 PVP、自然死亡或生物致死时的保留/掉落设置!
- 支持 Paper 和 Sponge
计划中
- 可配置的保留物品栏提示信息
- 仅保留/掉落特定物品
- 指定时间/生命周期内有限的保留物品栏使用次数
使用方法
只需将插件安装到你平台(Paper 或 Sponge)的 plugins 文件夹中即可。
当其他玩家导致你死亡时(无论是被剑砍死、被箭射死,还是从悬崖摔死),都被归类为“玩家击杀”。 只要 Minecraft 将其判定为由另一名玩家杀死,插件就会将其标记为“玩家击杀”。
“自然死亡”是指因饥饿、跌落伤害、溺水或掉出虚空而死亡的情况。它也应该涵盖 /kill 命令导致的死亡。
“生物致死”是指被敌对生物(如苦力怕、骷髅、蜘蛛等)杀死的情况。
命令
有一个命令 /betterkeepinventory reload 用于重载配置文件并应用所做的更改。
该命令需要权限 betterkeepinventory.commands。你也可以使用简写命令 /bki reload。
权限
默认情况下,所有玩家都将启用保留物品栏功能。
如果只想赋予特定玩家此功能,可以将选项 require-permission 设置为 true,并仅给那些希望拥有保留物品栏能力的玩家授予权限 betterkeepinventory.keep。
为此,你需要一个权限插件,例如 LuckPerms。
配置
Paper 插件使用 .yml 文件进行配置,而 Sponge 插件使用 .json 文件。
对于世界特定的设置,Sponge 配置需要使用完整的世界名称,例如 minecraft:overworld。
Paper 和 Sponge 之间的默认世界名称也有所不同。
# 注意:请勿在此插件运行时启用保留物品栏游戏规则
# 影响所有世界的全球默认设置。将它们全部设置为 false 可获得原版功能(不保留物品栏)
# “keep”指的是玩家死亡时应保留的内容,此项不可配置
# 玩家死亡时是否需要权限 "betterkeepinventory.keep" 才能保留物品
# 如果为 false,所有人都将保留物品
require-permission: false
# 当被其他玩家杀死时,玩家是否应保留物品
keep-on-player-death: false
# 当发生自然死亡时(跌落伤害、饥饿、溺水等),玩家是否应保留物品
keep-on-natural-death: true
# 当被生物杀死时,玩家是否应保留物品
keep-on-mob-death: true
# 如果玩家自杀(如被箭射死、末影水晶炸死等),玩家是否应保留物品
keep-on-suicide: false
# “保留”相关设置
# 当玩家死亡时,是否应保留其物品栏
keep-inventory-items-on-death: true
# 当玩家死亡时,是否应保留其经验等级。
# 你的等级越高,升级所需的经验就越多,因此带着 10 级经验和 50% 的经验保留率死亡,重生后不会只有 5 级经验
# 该值也可以是 0 到 1 之间的数字,1 表示保留所有经验,0 表示不保留任何经验
# 0.5 - 只保留一半的经验
keep-exp-on-death: 1.0
# 世界特定设置。这些设置将覆盖上述全局设置,仅针对指定的世界生效
worlds:
# 世界名称
world:
# 这些设置是否应覆盖全局设置。设置为 false 以禁用覆盖
enabled: false
require-permission: false
keep-on-killed-by-player: false
keep-on-natural-death: true
keep-on-mob-death: true
keep-inventory-items-on-death: true
keep-exp-on-death: 0.5
world_nether:
enabled: false
require-permission: true
keep-on-killed-by-player: false
keep-inventory-items-on-death: true
keep-exp-on-death: 1.0
# “keep-on-natural-death” 和 “keep-on-mob-death” 选项已被省略。这两个选项将默认为文件顶部设置的全局默认值
# 而其他在 world 部分中指定的设置将采用上面设置的相应选项
示例:无论发生何种情况,仅在末地维度保留物品栏
require-permission: false
keep-on-player-death: false
keep-on-natural-death: false
keep-on-mob-death: false
keep-on-suicide: false
keep-inventory-items-on-death: true
keep-exp-on-death: 1.0
worlds:
world_nether:
enabled: true
require-permission: false
keep-on-killed-by-player: true
keep-on-natural-death: true
keep-on-mob-death: true
keep-on-suicide: false
keep-inventory-items-on-death: true
keep-exp-on-death: 1.0
支持
你可以在我的 Discord 服务器 上获取支持,或者在 GitHub 仓库 这里 报告任何错误。
如果需要新服务器,请查看我们的合作伙伴 lagless.gg
使用代码 Dinonuggies 享受八折优惠!
Better Keep Inventory
Better Keep Inventory is a plugin that builds more functionality on top of the "Keep Inventory" gamerule idea. The gamerule is very limited with the only configuration available is enabling/disabling it and having it work in specific worlds. This plugin can handle those scenarios for you and more! Per world configuration and keeping your inventory in specific scenarios such as natural deaths, mob deaths or player deaths. Whether your items are kept or dropped for whatever reason is up to you!
Features
- Per world configuration
- Permissions
- Reloadable config without restarting the server
- Keep/Drop on PVP, Natural or Mob caused death!
- Paper and Sponge support
Planned
- Configurable message on keep inventory
- Drop/keep only certain items
- Limited keep inventory uses per specified time/lifetime
Usage
Just install the plugin to your plugins folder for your platform (Paper or Sponge)
A player death is classified as a player other than yourself causing your death, whether it be from a sword, arrow, or hitting off a cliff. As long as Minecraft classifies it as being killed by another player it is labelled a player death in the plugin.
A natural death is when you die from starvation, fall damage, drowning, or from the void. It should cover death from the /kill command too.
A mob death is when you are killed by a hostile mob, creeper, skeleton, spider etc.
Commands
There is one command /betterkeepinventory reload which reloads the config file and applies the changes made.
It requires the permission betterkeepinventory.commands. You can also run /bki reload for short.
Permissions
By default, every player will have the keep inventory functionality enabled.
To only give it to specific people you can set the option require-permission to true and give only the players you want to have the keep inventory ability the permission betterkeepinventory.keep.
To do that you will need a permission plugin like LuckPerms.
Configuration
The Paper plugin uses a .yml file for configuration and the Sponge plugin uses a .json file.
For world specific settings the Sponge config needs the full world name such as minecraft:overworld.
Default world names are also different between Paper and Sponge
# NOTE: DO NOT HAVE THE KEEP INVENTORY GAMERULE ENABLED WITH THIS PLUGIN
# Global default settings that affect all worlds. Set all of them to false for vanilla functionality (No keep inventory)
# "keep" refers to what should be kept when the player dies which is not configurable
# Should the permission "betterkeepinventory.keep" be required for a player to "keep" on death
# If false everyone will "keep"
require-permission: false
# Should the player "keep" when killed by another player
keep-on-player-death: false
# Should the player "keep" on a natural death. Fall damage, starving, drowning etc
keep-on-natural-death: true
# Should the player "keep" when killed by a mob
keep-on-mob-death: true
# Should the player "keep" if they commited suicide. With arrows, end crystal etc
keep-on-suicide: false
# "keep" settings
# When the player dies should their inventory be kept
keep-inventory-items-on-death: true
# When the player dies should their EXP level be kept.
# The higher level you are the more EXP needed to level up so dying with 10 levels and 50% keep EXP will not respawn the player with 5 levels
# The value can also be a number from 0 to 1, with 1 meaning that all EXP is kept and 0 is none
# 0.5 - Keeps only half the EXP
keep-exp-on-death: 1.0
# World specific settings. These will override the above global settings for the specified world
worlds:
# The name of the world
world:
# Should these settings override the global ones. Set to false to disable the override
enabled: false
require-permission: false
keep-on-killed-by-player: false
keep-on-natural-death: true
keep-on-mob-death: true
keep-inventory-items-on-death: true
keep-exp-on-death: 0.5
world_nether:
enabled: false
require-permission: true
keep-on-killed-by-player: false
keep-inventory-items-on-death: true
keep-exp-on-death: 1.0
# The "keep-on-natural-death" and "keep-on-mob-death" options have been left out. These two will default to the global
# defaults set at the top of the file while the other settings that are specified will have whatever option is set
# above inside the world section
Example for only keeping your inventory in the nether no matter what
require-permission: false
keep-on-player-death: false
keep-on-natural-death: false
keep-on-mob-death: false
keep-on-suicide: false
keep-inventory-items-on-death: true
keep-exp-on-death: 1.0
worlds:
world_nether:
enabled: true
require-permission: false
keep-on-killed-by-player: true
keep-on-natural-death: true
keep-on-mob-death: true
keep-on-suicide: false
keep-inventory-items-on-death: true
keep-exp-on-death: 1.0
Support
Support can be provided on my discord server or you can report any bugs on the GitHub repository here
If you need a new server check out our partner lagless.gg
Use code Dinonuggies for 20% off!
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Keep Inventory
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Keep Inventory
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
已更改
- 现在对于
keep-on-player-death选项,使用 Minecraft 战斗追踪器来追踪玩家战斗。由于该功能仅存在于 1.21.5 Paper 中,因此不再支持 1.21.4。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧