Repository navigation
Click‐Actions
LemonGui features a powerful action engine that allows you to execute multiple commands, play sounds, or send messages when a player clicks an item.
You can configure different actions for Left-Click, Right-Click, and Middle-Click directly from the In-Game Visual Editor.
To define what an action does, you must prefix your text with one of the following tags. If no tag is provided, it defaults to a [player] command.
Forces the player who clicked the item to execute a command or send a chat message.
-
Format:
[player] <command> -
Example:
[player] spawn
Executes a command directly from the server console. Useful for giving items, adding money, or bypassing player permissions.
-
Format:
[console] <command> -
Example:
[console] give %player_name% diamond 1
Sends a raw text message to the player. It supports MiniMessage and Hex colors.
-
Format:
[message] <text> -
Example:
[message] <green>You successfully bought this item!
Displays a Title and Subtitle on the player's screen. Separate the main title and subtitle using a semicolon ;.
-
Format:
[title] <main_title>;<subtitle> -
Example:
[title] <gold>Level Up!;<yellow>You are now VIP.
Plays a native Minecraft sound effect to the player. Must use valid Spigot Sound enum names.
-
Format:
[sound] <SOUND_NAME> -
Example:
[sound] ENTITY_PLAYER_LEVELUP
Instantly closes the GUI when the item is clicked.
-
Format:
[close] -
Example:
[close]
-
PlaceholderAPI Support: All actions fully support PlaceholderAPI. You can use variables like
%player_name%in your console commands or messages. -
Sequential Execution: Actions are executed in the exact order they appear in the Visual Editor. You can combine them! For example, you can play a
[sound], give an item via[console], and then[close]the menu all in a single click.