KeepInventory Individual 允许你为每个玩家单独设置 KeepInventory(死亡保留物品)。
此插件支持 MySQL,因此可以将启用了 KeepInventory 的玩家列表保存到数据库中。
如果禁用了 MySQL,或未能建立连接,则插件会暂时将列表存储在 YAML 文件中,直到与 MySQL 数据库建立连接为止。
一旦连接建立,插件会自动将列表从 YAML 文件迁移到数据库中。
你还可以对某些死亡原因进行黑名单处理,例如如果你不希望玩家在掉入虚空时保留物品。更多相关信息请参阅配置部分。
本插件还提供了一个 API,允许你在自己的项目中使用其部分功能!了解更多
用法: /keepinventory <on/off/reload> (player)
该命令只能由拥有权限的管理员玩家,或被分配了相应权限的玩家使用。
| 命令 | 描述 |
|---|---|
| /keepinventory on (player) | 为你或指定的玩家启用 KeepInventory。 |
| /keepinventory off (player) | 为你或指定的玩家禁用 KeepInventory。 |
| /keepinventory reload | 重新加载配置文件。 |
| /keepinventory list | 显示已启用 KeepInventory 的玩家列表。 |
| /keepinventory help | 显示此插件的命令列表。 |
以下是用于这些命令的权限节点。
| 权限 | 用途 | 默认值 |
|---|---|---|
| ki.admin.cmd.on | 用于 /keepinventory on | 管理员玩家 |
| ki.admin.cmd.off | 用于 /keepinventory off | 管理员玩家 |
| ki.admin.cmd.other | 用于 /keepinventory on/off (Player) | 管理员玩家 |
| ki.admin.cmd.reload | 用于 /keepinventory reload | 管理员玩家 |
| ki.admin.cmd.list | 用于 /keepinventory list | 管理员玩家 |
| ki.admin.cmd.help | 用于 /keepinventory help | 管理员玩家 |
| ki.keepxp | 拥有此权限的玩家在死亡时将保留经验值。 | 管理员玩家 |
| ki.onjoin.on | 玩家加入时默认启用 KeepInventory。被列入黑名单的世界会取消该效果。 | 管理员玩家 |
| ki.onjoin.off | 玩家加入时默认禁用 KeepInventory。 | 管理员玩家 |
config.yml
# 注意:使用黑名单时,请确保以大写形式书写原因,如下所示:
# blacklist:
# - VOID
# - EXPLOSION
# ----------------------------------------------------------------------------------------
# 如果你想留空列表,请按以下格式输入:
# blacklist: []
# ----------------------------------------------------------------------------------------
# 你可以在这里找到所有伤害原因的列表:
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
# ----------------------------------------------------------------------------------------
world-blacklist:
enabled: false
blacklist: []
deathcause-blacklist:
enabled: false
blacklist: []
mysql:
enabled: false
host: HOST NAME
port: PORT
database: DATABASE NAME
user: USERNAME
password: PASSWORD
debug:
send-on-join-notification: false
enabled: false
messages.yml
info:
on-join:
enabled: '&7KeepInventory has been enabled for you by default!'
disabled: '&7KeepInventory has been disabled for you by default!'
blacklisted: '&7KeepInventory disabled, because you''re in a blacklisted world!'
enabled: '&7Successfully enabled KeepInventory for &e{player}&7!'
disabled: '&7Successfully disabled KeepInventory for &e{player}&7!'
reload:
process: '&7Reloading configurations...'
success: '&7Configurations were successfully reloaded!'
error:
no-permission: '&cYou do not have permission to use this command!'
no-such-player: '&cPlayer &e{player} &cdoes not exist.'
invalid-arguments: '&cInvalid arguments. Usage: &e/keepinventory <on/off/reload>
(player)'
not-enough-arguments: '&cNot enough arguments. Usage: &e/keepinventory <on/off/reload>
(player)'
already-enabled: '&cIt is already enabled for &e{player} &c.'
already-disabled: '&cIt is already disabled for &e{player}.'
empty-list: '&cThe list is empty.'
must-be-number: '&cThe argument must be a number!'
page-out-of-bounds: '&cThe list only goes up to {number} pages.'
不知道如何设置或遇到了问题?
你可以在此处联系我:
KeepInventory Individual allows you to set KeepInventory for players individually.
This plugin supports MySQL, so that it can save the list of players with KeepInventory enabled, into the Database.
If MySQL is disabled, or no connection is established to it, then the plugin will temporarely store the list into a YAML file, until the connection to a MySQL database is established.
Once connection is established, the plugin will then move the list from the YAML file into the database automatically.
You can also blacklist certain death causes, if you do not want the player to keep their inventory for falling into the void for example. More info about it in the Configs section.
This plugin also has an API, allowing you to use some of it's features in your own projects! Learn more
Usage: /keepinventory <on/off/reload> (player)
The command itself can only be used by opped players, or players with the appropriate permissions assigned to them.
| Command | Description |
|---|---|
| /keepinventory on (player) | Enables KeepInventory for you or the player mentioned. |
| /keepinventory off (player) | Disables KeepInventory for you or the player mentioned. |
| /keepinventory reload | Reloads the config files. |
| /keepinventory list | Shows a list of players with KeepInventory enabled. |
| /keepinventory help | Shows a list of commands for this plugin. |
These are the permission nodes used for the commands.
| Permission | Usage | Default |
|---|---|---|
| ki.admin.cmd.on | Used for /keepinventory on | Opped Players |
| ki.admin.cmd.off | Used for /keepinventory off | Opped Players |
| ki.admin.cmd.other | Used for /keepinventory on/off (Player) | Opped Players |
| ki.admin.cmd.reload | Used for /keepinventory reload | Opped Players |
| ki.admin.cmd.list | Used for /keepinventory list | Opped Players |
| ki.admin.cmd.help | Used for /keepinventory help | Opped Players |
| ki.keepxp | Players with this permission will keep their experience upon death. | Opped Players |
| ki.onjoin.on | Players will have KeepInventory enabled by default as soon as they join. Blacklisted worlds will cancel it. | Opped Players |
| ki.onjoin.off | Players will have KeepInventory disabled by default as soon as they join. | Opped Players |
config.yml
# NOTE: When using the blacklist, please make sure to write the causes in caps like this:
# blacklist:
# - VOID
# - EXPLOSION
# ----------------------------------------------------------------------------------------
# If you want to leave the list empty, please enter the list like this:
# blacklist: []
# ----------------------------------------------------------------------------------------
# You can find a list of all damage causes here:
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
# ----------------------------------------------------------------------------------------
world-blacklist:
enabled: false
blacklist: []
deathcause-blacklist:
enabled: false
blacklist: []
mysql:
enabled: false
host: HOST NAME
port: PORT
database: DATABASE NAME
user: USERNAME
password: PASSWORD
debug:
send-on-join-notification: false
enabled: false
messages.yml
info:
on-join:
enabled: '&7KeepInventory has been enabled for you by default!'
disabled: '&7KeepInventory has been disabled for you by default!'
blacklisted: '&7KeepInventory disabled, because you''re in a blacklisted world!'
enabled: '&7Successfully enabled KeepInventory for &e{player}&7!'
disabled: '&7Successfully disabled KeepInventory for &e{player}&7!'
reload:
process: '&7Reloading configurations...'
success: '&7Configurations were successfully reloaded!'
error:
no-permission: '&cYou do not have permission to use this command!'
no-such-player: '&cPlayer &e{player} &cdoes not exist.'
invalid-arguments: '&cInvalid arguments. Usage: &e/keepinventory <on/off/reload>
(player)'
not-enough-arguments: '&cNot enough arguments. Usage: &e/keepinventory <on/off/reload>
(player)'
already-enabled: '&cIt is already enabled for &e{player} &c.'
already-disabled: '&cIt is already disabled for &e{player}.'
empty-list: '&cThe list is empty.'
must-be-number: '&cThe argument must be a number!'
page-out-of-bounds: '&cThe list only goes up to {number} pages.'
You don't know how to set something up or found some issues?
You can reach out to me here:
下载 KeepInventory Individual
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KeepInventory Individual
下载 KeepInventory Individual
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KeepInventory Individual
下载 KeepInventory Individual
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KeepInventory Individual
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KeepInventory Individual
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KeepInventory Individual
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KeepInventory Individual
下载 KeepInventory Individual
- 修复了一个插件在生成配置文件前未创建目录文件夹的错误。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
评论 0
登录后参与评分
还没有评论,来抢沙发吧