RepairGui V6.2
该插件需要VAULT支持!
插件介绍
出事了 我怎么又搬了一个轻量级插件
-可自定义修复的价格/GUI的排版/修复按钮/关闭按钮
-可编辑GUI里的信息
-支持Playsound(即音效)
-可以使用其他插件里的金币/点券之类的作为修复的消耗品(本功能需要PlaceholderAPI)
修复多个项目(v6.0中的新功能)
插件配置
Config
.#检查更新
check-update: true
#前缀
Prefix: '&6&l[&a修理&6&l] '
Open-GUI:
command: true
# 可使用/repair打开gui
anvil: true
# 可用铁砧打开gui
# 修理完播放的音效
repair-sound:
enable: true
sound: BLOCK_ANVIL_USE
#开启后玩家只能通过使用管理员放置的铁砧打开修复GUI
Only-Admin-Anvil: true
#===================================================================#
# 可以使用的变量的占位符 #
# {DURABILITY} = 显示物品的耐久 #
# #
# {ENCHANTAMOUNT} = 显示物品的附魔及等级 #
# #
# 备注:没有{ENCHANTAMOUNT} (即没有附魔) 时会显示为0 #
#===================================================================#
repair-cost:
#花费金币/等级的计算公式
money:
enable: true
cost: '((10 * {DURABILITY}) + 200) / 2'
level:
enable: true
cost: '({DURABILITY} + 200) / 100'
# [repairgui_custom_<name>]的变量是用来显示玩家物品的花费的
# 比如"repairgui_custom_token", "repairgui_custom_GemsEconomy"
# 其他的部分占位符:
# %player_name% : 显示玩家的名字
# %cost% : 显示总花费(因为有一次修复多物品这种操作)
custom:
enable: false # 依赖项 PlaceholderAPI
cost:
1:
#名为TokenManager的经济插件
name: 代币
type: '%tm_token%'
#显示玩家目前的金币/点券/等级
cost: '({DURABILITY} + 200) / 100'
command: 'tokenmanager remove %player_name% %cost%'
# 指令前不需要加"/"
2:
#名为coin的经济插件
name: 硬币
type: '%coins_amount%'
cost: '({DURABILITY} + 200) / 100'
command: 'coins take %player_name% %cost%'
Message:
Not-Enough-Money: '&c唔...小哥准备的钱还不够修这点东西啊'
Not-Enough-Level: '&c因为经验不足而修不了装备么...还真是伤脑筋啊'
#占位符 %name% 会显示为你上面custom下设置的货币的名字(就是name:token这种)
#用token举例 下面的提示会显示为 【嗯? 看来是准备的 代币 还不够吗】
Not-Enough-Custom-Currencies: '&c嗯? 看来是准备的 %name% 还不够吗'
No-Permission: '&cQ(日本语,权限不足啊啊啊'
GUI
FillItem: #自动填充空的slot
enable: true
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 3
Gui-Settings:
#可选用的GUI大小 (9, 18, 27, 36, 45, 54)
size: 54
name: '&4修理GUI'
accept-button:
item:
material: STAINED_GLASS
display_name: '&a修复!'
quantity: 1
data: 5
lore:
- '&a修复将会消耗 货币:{PRICES_MONEY}枚 与 {PRICES_LEVEL} 级'
- '&a你的口袋里装着 货币{PLAYER_MONEY}枚'
- '&a你目前是 {PLAYER_LEVEL} 级哟'
slot: 38
cancel-button:
item:
material: STAINED_GLASS
display_name: '&cCancel'
quantity: 1
data: 14
lore:
- ''
- ''
slot: 42
player-item-slot: 22
GUI:
1:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 0
2:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 1
3:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 9
4:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 7
5:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 8
6:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 17
7:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 36
8:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 44
9:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 45
10:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 46
11:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 52
12:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 14
slot: 53
Multirepair
FillItem: #自动填充空的slot
enable: true
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 3
Gui-Settings:
#可选用的GUI大小 (9, 18, 27, 36, 45, 54)
size: 54
name: '&4修理GUI'
accept-button:
item:
material: STAINED_GLASS
display_name: '&a修复!'
quantity: 1
data: 5
lore:
- '&a修复将会消耗 货币:{PRICES_MONEY}枚 与 {PRICES_LEVEL} 级'
- '&a你的口袋里装着 货币{PLAYER_MONEY}枚'
- '&a你目前是 {PLAYER_LEVEL} 级哟'
slot: 38
cancel-button:
item:
material: STAINED_GLASS
display_name: '&cCancel'
quantity: 1
data: 14
lore:
- ''
- ''
slot: 42
player-item-slots:
- 11
- 12
- 13
- 14
- 15
- 20
- 21
- 22
- 23
- 24
GUI:
1:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 0
2:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 1
3:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 2
4:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 3
5:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 4
6:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 5
7:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 6
8:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 7
9:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 8
10:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 45
11:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 46
12:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 47
13:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 48
14:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 49
15:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 50
16:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 51
17:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 52
18:
type: item
item:
material: STAINED_GLASS_PANE
display_name: ' '
quantity: 1
data: 1
slot: 53
指令部分
/ repairgui reload
重载插件权限:repairgui.admin.reload
/ repair 或/ fix
修理物品权限:repairgui.command.repair
/ multirepair 或/ multifix
一次性修理多物品权限:repairgui.command.multirepair
/ repair <player> 或/ fix <player>
权限:repairgui.command .repair.others
/ multirepair <player> 或/ multifix <player>
权限:repairgui.command.multirepair.others
用铁砧打开gui的权限:
repairgui.repair
repairgui.multirepair
管理员放置GUI铁砧的权限:repairgui.admin.anvil
管理员操作:SHIFT+左键以打破带有GUI的铁砧
下载地址:请至原贴支持作者
|