返回顶部

[管理] [1.8-1.20]RepairGui —— 噫!好了!咱装备可以随时修了!

[复制链接]
像素搬运菌Lv.7 显示全部楼层 发表于 2024-2-29 03:00:32 |阅读模式 打印 上一主题 下一主题 来自 中国广西南宁
服务器插件
中文名称: GUI修复
英文名称: RepairGui
插件来源: 转载
适用服务端: CraftBukkit Spigot 
插件类型: 管理
语言支持: 中文 英文 
适用版本: 1.8.x 1.9.x 1.10.x 1.11.x 1.12.x 1.13.x 1.14.x 1.15.x 1.16.x 1.17.x 1.18.x 1.19.x 1.20.x 
前置插件/mod: 必须安装:VAULT ,(可选安装:PlaceholderAPI)
下载地址: https://www.spigotmc.org/resources/repairgui-1-8-1-20-x-editable-gui-prices-supports-other-plugins-currencies.61719/
原贴地址: https://www.spigotmc.org/resources/repairgui-1-8-1-20-x-editable-gui-prices-supports-other-plugins-currencies.61719/

马上登录/注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x

RepairGui V6.2
该插件需要VAULT支持!
image.jpg


插件介绍
出事了 我怎么又搬了一个轻量级插件
-可自定义修复的价格/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的铁砧

下载地址:请至原贴支持作者


帖子地址: 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

像素世界 成立于2022年8月,是中国开发者开创的一个综合像素沙盒游戏交流社区,拥有稳定的开发维护及运营技术,提供长期交流需求。本社区开放了我的世界模组、地图、插件等资源交流版块,集中了大量资源为玩家和开发者提供了优质的游戏环境。
  • 官方B站

  • 微信公众号

  • 商务合作