Skip to content
GabyTM edited this page Apr 21, 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!


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: COMMAND

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

open_command:
- COMMAND
- COMMAND

This defines the command(s) used to open the GUI. It may contain more than one word.

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:
- '[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: #

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: #

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:

This line should be left as is. It is merely telling the plugin you are about to begin defining items.

Clone this wiki locally