Actions
Actions in GUI Elements
Actions define the behavior of elements inside your GUI. There are both global actions and gui-specific actions.
Global actions
POTION
Potion, Duration (in seconds), Amplifier (level) [%chance].
Examples:
WEAKNESS
, 30, 1
SLOWNESS
200 10
1, 10000, 100 %50
Apply a potion effect when the player clicks the element
SOUND
Sound, Volume, Pitch
Examples:
ENTITY_PLAYER_BURP, 0.5, 1
BURP, 0.5, 1
MUSIC_END, 10
Play a sound when the player clicks the element
MESSAGE
Your Message with or without Colors. It doesn't support animations! Hovers and clicks are Paper-Only
Examples:
"<red>Your favorite <#FFFFF>message<gray>!"
Send a message to the player when he clicks the element
TITLE
<title>;<subtitle> with or without Colors. It doesn't support animations!
Examples:
"<gradient:red:green>Title;Subtitle"
Send a title to the player when he clicks the element
CLOSE
None
Closes the inventory and returns to the Fallback Main GUI if any required GUIs are incomplete.
PLAYER
Command without the initial / (Slash)
Executes a command for the Player
CONSOLE
Command without the initial / (Slash)
Executes a command for the Console
GUI-Specific Actions
Value Menu
MESSAGE
Your Message with or without Colors. It doesn't support animations! Hovers and clicks are Paper-Only
Examples:
"<red>Your favorite <#FFFFF><value><gray>!"
Send a message to the player when he clicks the element. Supports the <value> (As it is, follows MiniMessage's format) placeholders
VALUE
<modifier><value>
Examples:
- -2
- +2
- *2
- /2
Edit the GUI's value
SELECT
None
Confirm the GUI's current value
Selector Menu
SELECT
<value>
Examples:
"<red>Selected Value"
"Male"
"Warrior"
Select the clicked element's value
Last updated