Guis

This page contains information about how to configure the guis.

All items are configured using the ItemBuilder.

Title

The title of the GUI is specified by the keyword title. You can use MiniMessages to colorize and format the title (this also works in all texts of the plugin).

Rows

This setting accepts an intager (min. 1, max. 6) an specifies the rows of the gui.

Automatic Refreshes

You can let the gui refresh itself by adding autoRefresh: <value> to the gui config. The value must be greater than zero. Use -1 to disable.

Sections

Extra

This section contains extra settings for other items of the gui.

Buttons

Here you can configure the buttons wich e.g. close the gui.

Content

This is the last section, here you can add other items. As much as you want. This items are configured same as the other ones, but instead of adding slot: <slot>, you can define a intager list (e.g. slots: [ 1, 2, ... ]).

Sample configuration

Here is an example of an gui.

gui-config.yml
title: "<red>Sample Menu"
rows: 1

autoRefresh: -1

buttons:
  closeButton:
    enabled: true
    slot: 8
    # Here is the ItemBuilder used.
    item:
      material: BARRIER
      name: "<red><b>Close"

content:
  filler:
    slots: [0, 1, 2, 3, 4, 5, 6, 7]
    item:
      material: BLACK_STAINED_GLASS_PANE
      name: " "

Last updated