自定义GUI

当配置一个插件的 config.yml 时,如果你发现了如下内容,则代表它可以自定义GUI。

# Custom GUI slots; see here for a how-to: https://plugins.auxilor.io/all-plugins/custom-gui-slots
custom-slots: []

如何配置自定义GUI

很简单,我们只需要将这个选项改成这个样子即可:

custom-slots:
  - row: 6 # 行
    column: 9 # 列
    item: ecoitems:skill_gui_item # 物品语句
    lore: [] # Lore
    left-click: # 左键
      - console:op %player% # 以控制台身份执行,使用 %player% 代表玩家
      - spawn # 如果前面没有 console: 开头,则代表以玩家身份执行
    right-click: [] # 右键
    shift-left-click: [] # Shift 左键
    shift-right-click: [] # Shift 右键

添加多个自定义按钮

上文是只添加了一个按钮,我们只需要安装这个格式继续填写即可让其添加更多的按钮:

custom-slots:
  - <按钮1的配置>
  - <按钮2的配置>
  - <按钮3的配置>

Last updated