AnvilGUI
Keyword:
anvil
Info
- This is a special menu type only for getting inputs.
- In this menu type, the addon only apply ONE icon.
- The variable
{menu_<menu-name>_anvil_input}
stores the user's input (replace<file-name>
by the menu's file name).
Format
# Settings
menu-settings:
menu-type: anvil
<setting1>
<setting2>
...
# Left Button
left-button:
...
# Right Button
right-button:
...
# Button
button:
...
Available Settings
title
: the title of the menutext
: the text to show when the player opens the menucomplete-action
: the commands executed when the player clicks the result slot (the last slot)close-action
: the commands executed when closing the menuprevent-close
: whether the addon prevents the player from closing the menucommand
: the commands to open the menuclear-input-on-complete
: whether the addon will clear the user's input when completed
Example
menu-settings:
menu-type: anvil
command: testanvil
title: "&cTest Anvil"
text: "What is your name?"
clear-input-on-complete: true
complete-action:
- "tell: &aHello, {menu_<menu-name>_anvil_input}"
prevent-close: true
close-action:
- "tell: &cYou closed the menu"
button:
id: paper