注意:此插件支持 1.8 及以上所有版本
如果配置项 EnderChestEnabled 设置为 true,尝试打开普通末影箱时将自动打开金库。如果设置为 false,玩家只能通过使用 /ecv 命令并在拥有相应权限的情况下打开金库。
您可以使用配置文件修改末影箱 GUI 的布局。您还可以从头开始为 GUI 创建按钮。请阅读下方的配置注释以获取更多信息。
保存/加载箱子物品和数据是在异步线程中完成的。
您可以为按钮添加成本,但您的服务器需要安装 Vault 和一个经济类插件:
- 适用于旧版本
- 适用于新版本
已过时的视频,该插件不再需要权限插件:
config.yml:
配置
reloadConfig: '&a您已重新加载配置文件'
noPermission: '&4您没有执行此命令的权限'
cannotOpenChest: '&c您无权与末影箱进行交互。'
purgeMessage: '&a您已清理了 {total} 个在 {hours} 小时内不活跃的玩家账户。'
purgeConfirmMessage: '&c您正在使用非常短的时间窗口来清理数据:{hours} 小时。如果您希望继续操作,请在命令末尾添加 -confirm。'
playerDoesNotExist: '&c玩家 {player} 不存在'
cannotOpen: '&c此容器当前正在备份。请稍后重试。'
clearRequireConfirm: '&c您即将清除 {player} 的末影箱金库。此操作需要确认。请在命令末尾添加 -confirm。'
clearConfirm: '&c您已成功清除 {player} 的末影箱金库。'
#New Messages 3.2
infoPages: '&a玩家 {player} 拥有 {amount} 页'
modifyPagesViewerMessage: '&c该储物箱的页数已修改。此储物箱将被备份并重新加载'
cmdUsage: '&c请使用 /ecvpages <玩家> <add/remove/set/info> [数量]'
cannotChangePagesNow: '&c用户的页面正在保存到外部文件,请稍后再试'
#Both 消息都可以使用 {amount} {oldAmount} {player}
modifiedPages: '&a你的末影箱保险库页面已被修改。总数量:{amount}'
modifiedPagesTarget: '&a{player} 现在拥有 {amount} 页(旧值:{oldAmount})'
#End 新增消息 3.2
#新消息 3.3
cannotPay: '&c你的资金不足。余额:{balance},费用:{cost}'
cannotPayTarget: '&c目标玩家资金不足。你的余额:{balance},费用:{cost}'
payedSuccess: '&a你已支付 {cost}。余额:{balance}'
payedSuccessTarget: '&a你已使用目标玩家的资金支付 {cost}。他们的余额:{balance}'
#允许定义哪些物品可以熔炼及其结果
#提供隐藏秘密或其他不易获取物品的可能性
smeltTable:
#- 'COAL_ORE:COAL'
#- 'IRON_ORE:IRON_INGOT'
#- 'GOLD_ORE:GOLD_INGOT'
#结束消息 3.3
#右键点击末影箱将打开末影箱金库,禁用原版末影箱。
rightClickEnderOpen: true
#你可以使用 {player} 显示玩家名称,使用 {page} 显示当前打开的页面。
inventoryTitle: '&a末影箱金库 - {page}'
# 分钟。在此时间内未交互的库存将被保存。
saveInventoryBackupTime: 30
# 插件检查不活跃箱子的频率(以分钟为单位)。
timerCheck: 30
# 如果玩家超过此特定时间未登录,其末影箱 Vault 数据将被清除。每次服务器启动时检查一次。
# 以小时为单位。例如:730 小时 = 1 个月。设为 0 或更小值将禁用此设置。
inactiveTimePurge: 0
# 每行最多可放置 9 个物品。超过 9 个的物品将被忽略。
# 最多可设置 6 行。超过 6 行的部分将被忽略。
# 可以使用下方按钮配置部分的 ID。
# 如果希望使用示例,请取消注释掉前面的 # 符号。
# 'slot' 是默认值。如果你未使用下方列表中的有效物品,它将变为普通槽位。
enderChestGUIFormat:
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'filler filler filler backArrow filler forwardArrow filler filler filler'
# 你可以添加任何你需要的物品。
# 此列表中的物品无法从背包中取出。
# 你可以在 commands 下运行任意命令 - {player} 可用于表示玩家名称。
# 可用的操作:%PAGE_NEXT%, %PAGE_BACK%, %INVENTORY_CLOSE%, %PAGE_FORWARD_{amount}%, %PAGE_BACKWARD_{amount}%, %PAGE_FIRST%, %PAGE_LAST%, %SMELT_{multiplier}
# 查看 funnyButton 示例以了解如何设置带有纹理的玩家头颅按钮
# 访问此网站查找头颅:https://minecraft-heads.com/
# 选择你喜欢的头颅,向下滚动到 'For Developers:' 部分并复制该值
buttons:
# filler:
# display: ' '
# material: PAPER
# materialData: 0
# hasGlow: false
# lore: ''
# commands: ''
# forwardArrow:
# display: '&a前往下一页'
# material: ARROW
# materialData: 0
# hasGlow: false
# lore: ''
# commands:
# - '%PAGE_NEXT%'
# backArrow:
# display: '&a返回上一页'
# material: ARROW
# materialData: 0
# hasGlow: false
# lore: ''
# commands:
# - '%PAGE_BACK%'
# funnyButton:
# display: '&c请勿点击'
# material: PLAYER_HEAD 或 SKULL_ITEM(适用于旧版本)
# base64: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWFiNGFmNzUxMTI0MzczNjM4MTVmNDkyNGMyMjJlMDg4NThkODNhZjMzN2M3ZDFhZDUyNDk2Yjc5YWY4ZWNhZCJ9fX0='
# materialData: 0
# hasGlow: false
# cost: 100
# lore: ''
# permission: super.awesome
# commands:
# - 'ban {player} Told you'
# 不要修改此项,否则可能导致玩家数据丢失
config-version: 0.0
最新版本中按钮可用的操作:%PAGE_NEXT%, %PAGE_BACK%, %INVENTORY_CLOSE%, %PAGE_FORWARD_{amount}%, %PAGE_BACKWARD_{amount}%, %PAGE_FIRST%, %PAGE_LAST%, %SMELT_{multiplier}
命令:
/ecv - 打开你的末影箱保险库。权限:enderchestvault.openwithcmd
/ecv {player} - 打开其他玩家的末影箱保险库。权限:enderchestvault.openwithcmdothers
/ecp {timeInHours} - 清除超过指定时间的玩家数据。对于非常短的时间需要确认。权限:enderchestvault.purge
/ecr - 重新加载配置文件。权限:enderchestvault.reload
/ecc - 清空你自己的保险库。权限:enderchestvault.clearself
/ecc {player} - 清空其他玩家的保险库。权限:enderchestvault.clearothers
/ecvpages <player> <add/remove/set/info> [amount] - 修改玩家的分页数量
你可以使用 '*' 来修改所有在线玩家的分页数量,而不是指定具体的玩家名称。
你可以使用 '**' 来修改服务器上曾经玩过的所有玩家(无论离线还是在线)的分页数量。
附加权限:
enderchestvault.openself - 允许玩家在配置文件中启用时右键点击末影箱以打开它。
此插件使用了 bStats,如果你希望禁用 bStats,请前往 /plugins/bStats/config.yml 并将 enabled 设置为 false
如需报告错误或提出建议,请在 Discord 上联系我:balustrada
NOTE: This plugin supports all version from 1.8+
Attempting to open a normal ender chest will automatically open the vault if the configuration setting isEnderChestEnabled is set to true. If it is set to false, players will only be able to open the vault by using the /ecv command and if they have the necessary permissions to do so.
You have the ability to modify the layout of the enderchest GUI using the config. You also have the ability to create buttons from scratch for the GUI. Read config comments below for more information.
Saving/loading chest items/data is done async.
You can add a cost to buttons, but you'll need Vault installed on your server and an economy plugin
- For older versions
- Newer versions
Outdated video, plugin no longer requires a permissions plugin:
config.yml :
config
reloadConfig: '&aYou have reloaded the config'
noPermission: '&4You do not have the permission to execute this command'
cannotOpenChest: '&cYou do not have access to interact with the ender chest.'
purgeMessage: '&aYou have purged {total} inactive accounts for time {hours} hours.'
purgeConfirmMessage: '&cYou are using a very short time frame for purging data: {hours} hours. If you wish to proceed, add -confirm to the end of the command.'
playerDoesNotExist: '&cThe player {player} does not exist'
cannotOpen: '&cThis container is currently being backed up. Please retry shortly.'
clearRequireConfirm: '&cYou are about to clear {player}`s ender chest vault. This action requires confirmation. Please add -confirm at the end of the command.'
clearConfirm: '&cYou have successfully cleared {player}`s ender chest vault.'
#New Messages 3.2
infoPages: '&aPlayer {player} has {amount} page(s)'
modifyPagesViewerMessage: '&cThe number of pages for this vault has been modified. This vault will be backed up and reloaded'
cmdUsage: '&cPlease use /ecvpages <player> <add/remove/set/info> [amount]'
cannotChangePagesNow: '&cThe user`s pages are curently being saved to an external file. Please try again in a bit'
#Both messages can use {amount} {oldAmount} {player}
modifiedPages: '&aYour ender chest vault pages have been modified. Total amount: {amount}'
modifiedPagesTarget: '&a{player} now has {amount} page(s). Old value: {oldAmount}'
#End new messages 3.2
#New Messages 3.3
cannotPay: '&cYou don`t have enough funds. Your balance: {balance}, cost: {cost}'
cannotPayTarget: '&cThe target player does not have enough funds. Your balance: {balance}, cost: {cost}'
payedSuccess: '&aYou have payed {cost}. Your balance: {balance}'
payedSuccessTarget: '&aYou have payed {cost} using the target`s money. Their balance: {balance}'
#Allows to define which items can be smelted and the result
#Gives the posibility of hiding secrets, or other items that are not easily obtainable
smeltTable:
#- 'COAL_ORE:COAL'
#- 'IRON_ORE:IRON_INGOT'
#- 'GOLD_ORE:GOLD_INGOT'
#End Messages 3.3
# Right-clicking an ender chest will open the ender chest vault, disabling the vanilla ender chest.
rightClickEnderOpen: true
# You can use {player} to display the player's name, and {page} to display the current open page.
inventoryTitle: '&aEnderChest Vault - {page}'
# In minutes. Stores inventories not interacted with in this amount of time.
saveInventoryBackupTime: 30
# How many times in minutes the plugin checks for inactive chests.
timerCheck: 30
# Players who haven't logged in for this specific amount of time will have their ender chest vault data purged. Checked once per server start.
# In hours. Ex: 730 hours = 1 month. 0 or less will deactivate this setting.
inactiveTimePurge: 0
# One row can have a maximum of 9 items. Anything over 9 on a row will be ignored.
# You can have a maximum of 6 rows. Anything over 6 will be ignored.
# You can use ids from the buttons config section below.
# Remove the # from the example if you want to use it.
# 'slot' is a default value. If you don't use a valid item from the list below, it'll become a normal slot instead.
enderChestGUIFormat:
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'slot slot slot slot slot slot slot slot slot'
#- 'filler filler filler backArrow filler forwardArrow filler filler filler'
# You can add any items you need.
# Items from this list cannot be taken from the inventory.
# You can run any command under commands - {player} can be used for the name of the player.
# Actions that can be used: %PAGE_NEXT%, %PAGE_BACK%, %INVENTORY_CLOSE%, %PAGE_FORWARD_{amount}%, %PAGE_BACKWARD_{amount}%, %PAGE_FIRST%, %PAGE_LAST%, %SMELT_{multiplier}
# See funnyButton example on how to setup textured player heads buttons
# Go to this site to find heads: https://minecraft-heads.com/
# Select the head that you like, go down to 'For Developers:' sections and copy the value
buttons:
# filler:
# display: ' '
# material: PAPER
# materialData: 0
# hasGlow: false
# lore: ''
# commands: ''
# forwardArrow:
# display: '&aGo to the next page'
# material: ARROW
# materialData: 0
# hasGlow: false
# lore: ''
# commands:
# - '%PAGE_NEXT%'
# backArrow:
# display: '&aGo back a page page'
# material: ARROW
# materialData: 0
# hasGlow: false
# lore: ''
# commands:
# - '%PAGE_BACK%'
# funnyButton:
# display: '&cDo not click'
# material: PLAYER_HEAD or SKULL_ITEM(for older versions)
# base64: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWFiNGFmNzUxMTI0MzczNjM4MTVmNDkyNGMyMjJlMDg4NThkODNhZjMzN2M3ZDFhZDUyNDk2Yjc5YWY4ZWNhZCJ9fX0='
# materialData: 0
# hasGlow: false
# cost: 100
# lore: ''
# permission: super.awesome
# commands:
# - 'ban {player} Told you'
#Do not modify or you risk player data loss
config-version: 0.0
Actions that can be used on a button for the newest version: %PAGE_NEXT%, %PAGE_BACK%, %INVENTORY_CLOSE%, %PAGE_FORWARD_{amount}%, %PAGE_BACKWARD_{amount}%, %PAGE_FIRST%, %PAGE_LAST%, %SMELT_{multiplier}
Commands:
/ecv - Opens your Ender Chest Vault. Permission: enderchestvault.openwithcmd
/ecv {player} - Opens another player's Ender Chest Vault. Permission: enderchestvault.openwithcmdothers
/ecp {timeInHours} - Purges player data older than the specified time. Confirmation is required for very short times. Permission: enderchestvault.purge
/ecr - Reloads the configuration file. Permission: enderchestvault.reload
/ecc - Clears your own vault. Permission: enderchestvault.clearself
/ecc {player} - Clears another player's vault. Permission: enderchestvault.clearothers
/ecvpages <player> <add/remove/set/info> [amount] - Modify the number of pages for a player
You can use '*' to modify the number of pages for all online players instead of specifying a player name.
You can use '**' to modify the number of pages for every player who has ever played on the server, whether offline or online.
Additional Permissions:
enderchestvault.openself - Allows a player to right-click the ender chest to open it, if enabled in the config.
This plugin uses bStats, if you wish to disable bStats go to /plugins/bStats/config.yml and set enabled to false
To report bugs or make a suggestion message me on discord: balustrada
评论 0
登录后参与评分
还没有评论,来抢沙发吧