Skip to content

Click‐Actions

ElGuanteAzul edited this page Sep 21, 2026 · 1 revision

⚡ Click Actions Engine

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.

🏷️ Available Action Tags

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.

1. [player] (Default)

Forces the player who clicked the item to execute a command or send a chat message.

  • Format: [player] <command>
  • Example: [player] spawn

2. [console]

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

3. [message]

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!

4. [title]

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.

5. [sound]

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

6. [close]

Instantly closes the GUI when the item is clicked.

  • Format: [close]
  • Example: [close]

💡 Pro Tips

  • 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.

Clone this wiki locally