Skip to content
Andre_601 edited this page Aug 5, 2018 · 12 revisions
gui_menus:
  menuname:
    menu_title: 'TEXT'
    open_command: TEXT
    open_requirement: EXPRESSION
    open_commands:
    - '[player] COMMAND'
    - '[console] COMMAND'
    - '[commandevent] COMMAND'
    - '[message] TEXT'
    - '[openguimenu] MenuName'
    - '[connect] ServerName'
    - '[json] {"text":"message"}'
    - '[refresh]'
    - '[broadcastsound] SOUND'
    - '[sound] SOUND'
    - '[takemoney] #'
    size: #
    update_interval: #
    items:

Note: If you're using an external reference to a gui .yml file your configuration will start at the menu_title: option!

Navigation


Menu Title

menu_title: 'TEXT'

This is the menu title that is shown at the top of the open GUI. You can use color and formatting codes in this area. You can also use Placeholders in this title (Like %player_name%).


Open Command

open_command: COMMAND

This defines the command used to open the GUI. This needs to be ONE word.

You can define multiple commands by putting each command on a seperate line.
Example:

open_command:
- COMMAND
- COMMAND

Open Requirement

open_requirement:
 requirements:
   <TEXT>:
     type: <type>

This will give you able to open the menu if you have for example a specific permission, amount of money, etc See this page for more information about it.


Open Commands

open_commands:
- '[player] COMMAND'
- '[console] COMMAND'
- '[commandevent] COMMAND'
- '[message] TEXT'
- '[openguimenu] MenuName'
- '[connect] ServerName'
- '[json] {"text":"message"}'
- '[refresh]'
- '[broadcastsound] SOUND'
- '[sound] SOUND'
- '[takemoney] #'

This will run the command(s) you set when player open the the menu.


Size

size: #

This option tells the plugin how large the inventory should be. 9, 18, 27, 36, 45, 54 are the only acceptable numbers here. Each one adds another line to the GUI.


Update Interval

update_interval: #

This is for any items that use the update: tag (See Item options). The number defines the amount of seconds between each refresh of the placeholders in an item lore/display name.


Items

items:

This line should be left as is. It is merely telling the plugin you are about to begin defining items.
See the Item page for more information.

Clone this wiki locally