-
Notifications
You must be signed in to change notification settings - Fork 44
GUI
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 GUI-file (seperate .yml file) your configuration will start at the menu_title: option!
- Menu Title
- Open Command
- Open Requirement
- Open Commands (This is different from open command)
- Size
- Update Interval
- Item
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.
You can define multiple commands by putting each command on a seperate line.
Example:
open_command: - COMMAND - COMMAND
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 the open, view & click requirements 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.
See the Item page for more information.
- Placeholders
- Materials:
- Enchantments (Be aware that some enchantments are not available on some items.)
- Dye Colors
- Pattern Types
- Sound Types