🆕Creating GUI

Let's take a look and go threw a tutorial how to create a gui.

  1. Go to the plugin, that run on our GUI Library.

  2. Open plugin folder and then open folder "guis"

  3. If you want to make better orientation in your files you can create subfolders for your guis e.g.: guis/survival/xxx.yml

  4. Create a gui file (e.g.: example.yml)

  5. Then insert required lines. Everything is below.

- GUI Title

Title is a short text describing what the menu is about. Title can be found at the top of the menu above the slots.

example.yml
title: 'your text'

- GUI Rows

Rows is a number of menu lines inserted in a text form. Rows types: ONE | TWO | THREE | FOUR | FIVE | SIX

example.yml
rows: SIX # six rows (54 slots // large chest)

- GUI ItemMap

Item map is special slot system. But it is better than normal slot, because there is no numbers. Every item in the menu have own letter or symbol. When you add that item letter/symbol to the item map, slot will be automatically calculated by the system. At first paste this to your item map: - '---------' this is empty row... If you have 5 rows, paste this 5 times. Then only add symbols... e.g.:

example.yml
# G - glass
# S - skull

item-map:
- '-GG-S-GG-'

- GUI Type

If you want, you can change your gui type to a guis that's not a really normal on other servers.

type: CHEST

#item map example
item-map:
- '---------'
- '---------'
- '---------'

- Open/Close actions

Actions that will run when a player open/close gui.

open-actions:
...

close-actions:
...

Last updated