Custom Menus
Guide to configure custom menus
Example configuration
# What commands should open the menu?
# Changing this might require a full server restart depending on server version
# (Optional, can be deleted)
register-commands:
- "mymenu"
# Title of the inventory
title: "&6Example Menu"
# How many rows should the inventory have?
rows: 6
# Should we refresh the menu periodically? (most of the times, you don't need this)
# (Optional, can be deleted)
refresh: false
# How often should the menu be refreshed? (in seconds, minimum 1, has to be an integer)
# (Optional, can be deleted)
refresh-interval: 5
# What are the requirements for opening the menu? can be multiple
# (Optional, can be deleted)
open-requirements:
- requirement: "[permission] example.permission"
# What should happen when this requirement isn't met?
deny-actions:
- "[message] You do not have permission to open this menu."
# What should we run when the menu opens?
# (Optional, can be deleted)
open-actions:
- "[sound] entity.villager.yes"
# What should we run when the menu gets closed?
# (Optional, can be deleted)
close-actions:
- "[sound] entity.villager.no"
# Default item to fill the GUI with
# (Optional, can be deleted)
filler:
material: black_stained_glass_pane
hide-tooltip: true
# These are the items for the gui.
# For more info, see Item config and Requirement pages
items:
test:
# Higher priority means if both items are visible on the same slot, this will win
priority: 1
# When periodic refresh is enabled only those items will be refreshed
# that has refresh: true
refresh: true
material: diamond
name: "&6Test Item"
lore:
- "&7%server_time_hh:mm:ss%"
slot: 13
on-click:
- "[open-gui] aaa"
view-requirements:
- "![permission] example.permission"
test2:
priority: 0
material: emerald
name: "&6Test Item {arg_test}"
lore:
- "&7This is a test item."
slot: 13
on-click:
- "[console] say Hello world {arg_test}!"
- "[permission] example.permission"
click-requirements:
- requirement: "[arg] test == example"
deny-actions:
- "[message] test arg is not example! It is {arg_test}"Opening a menu
Menu arguments
Actions
Requirements
Last updated