Skip to content

GUI Config

Ashenguard edited this page Sep 13, 2022 · 9 revisions

All AGMPlugins use the same GUI System provided by AGMCore. This GUI System is separated into 2 parts:

GUI Items

All items use the same format named Item Tree which you can check here.
You can use one of the following methods to define your GUI Item.

Notes:

All GUI Items support color formats (including hex color codes)
All GUI Items will support PlaceholderAPI placeholders

RedBorder:
  Material: 'RED_STAINED_GLASS_PANE'
  Name: ' '

AGMCore Library

All yaml/yml files inside the following directory are loaded into AGMCore's Item Library and are usable by all GUI inventories.

Directory: plugins/AGMCore/GUI

Within each file, Each GUI Item is defined by a key using the Item Tree format. Since all the items are preloaded into the server to reduce the lag spike while opening a GUI it's recommended to move and merge them inside the Item Library.

Inside GUI Inventory

Inside a GUI Inventory config file, You can define local GUI Items, which are only accessible by the same GUI Inventory. Check GUI Inventory for more information.

GUI Inventories

Every Graphical User Interfaces inside Minecraft using custom inventory is called GUI Inventory. AGMPlugins are one of the few plugins allowing servers to customize their GUI inventories to the fullest.
Each GUI Inventory uses a separate yaml file where you can customize everything inside. Check this page for all information you need.

Clone this wiki locally