# ClickActions

Here's a list of all available Click Actions and their syntax:

<table><thead><tr><th width="220">ClickAction</th><th>Syntax</th><th>Description</th></tr></thead><tbody><tr><td>OPEN_MENU</td><td>OPEN_MENU:&#x3C;menu_key></td><td>Opens another menu (e.g., OPEN_MENU:time_selector, OPEN_MENU:punish_menu). &#x3C;menu_key> corresponds to the menu identifier (e.g., time_selector, punish_details).</td></tr><tr><td>SET_PUNISHMENT_TYPE</td><td>SET_PUNISHMENT_TYPE:&#x3C;punishment_type_key></td><td>Sets a specific punishment type (e.g., SET_PUNISHMENT_TYPE:permanent_time, SET_PUNISHMENT_TYPE:confirm_time). &#x3C;punishment_type_key> is the identifier for the punishment type or action.</td></tr><tr><td>REQUEST_INPUT</td><td>REQUEST_INPUT:&#x3C;input_type></td><td>Requests text input from the player via chat (e.g., REQUEST_INPUT:reason_input, REQUEST_INPUT:custom_time_input). &#x3C;input_type> is the type of input being requested (e.g., reason_input).</td></tr><tr><td>ADJUST_TIME</td><td>ADJUST_TIME:&#x3C;time_adjustment_key></td><td>Adjusts the selected time duration in the <strong>Time Selector Menu</strong> (e.g., ADJUST_TIME:plus_15_min, ADJUST_TIME:minus_2_hour). &#x3C;time_adjustment_key> is the identifier for the time adjustment.</td></tr><tr><td>CONFIRM_PUNISHMENT</td><td>CONFIRM_PUNISHMENT:</td><td>Confirms and executes the punishment set in the <strong>Punish Details Menu</strong>.</td></tr><tr><td>UN_SOFTBAN</td><td>UN_SOFTBAN:</td><td>Removes the softban from the target player.</td></tr><tr><td>UN_FREEZE</td><td>UN_FREEZE:</td><td>Removes the freeze punishment from the target player.</td></tr><tr><td>UN_BAN</td><td>UN_BAN:</td><td>Removes the ban from the target player.</td></tr><tr><td>UN_MUTE</td><td>UN_MUTE:</td><td>Removes the mute from the target player.</td></tr><tr><td>UN_WARN</td><td>UN_WARN:</td><td>Removes the warn from the target player (if unwarn_command is configured).</td></tr><tr><td>CLOSE_MENU</td><td>CLOSE_MENU:</td><td>Closes the currently open menu.</td></tr><tr><td>ADJUST_PAGE</td><td>ADJUST_PAGE:&#x3C;next_page|previous_page|no_action></td><td>Navigates between pages in the <strong>History Menu</strong> (e.g., ADJUST_PAGE:next_page, ADJUST_PAGE:previous_page, ADJUST_PAGE:no_action).</td></tr><tr><td>CONSOLE_COMMAND</td><td>CONSOLE_COMMAND:&#x3C;command></td><td>Executes a command as the server console. &#x3C;command> is the command to execute, supporting placeholders.</td></tr><tr><td>PLAYER_COMMAND</td><td>PLAYER_COMMAND:&#x3C;command></td><td>Executes a command as the player who clicked the item. &#x3C;command> is the command to execute, supporting placeholders.</td></tr><tr><td>PLAYER_COMMAND_OP</td><td>PLAYER_COMMAND_OP:&#x3C;command></td><td>Executes a command as OP by the player who clicked the item. &#x3C;command> is the command to execute, supporting placeholders.</td></tr><tr><td>PLAY_SOUND</td><td>PLAY_SOUND:&#x3C;sound_name>:&#x3C;volume>:&#x3C;pitch></td><td>Plays a sound to the player who clicked the item. &#x3C;sound_name> is the <a href="https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html">Bukkit Sound enum</a> name, &#x3C;volume> and &#x3C;pitch> are optional volume and pitch values (default 1.0). </td></tr><tr><td>PLAY_SOUND_TARGET</td><td>PLAY_SOUND_TARGET:&#x3C;sound_name>:&#x3C;volume>:&#x3C;pitch></td><td>Plays a sound to the <strong>target player</strong> (player being punished). Parameters are the same as PLAY_SOUND. <a href="https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html">Bukkit Sound enum</a></td></tr><tr><td>PLAY_SOUND_MODS</td><td>PLAY_SOUND_MODS:&#x3C;sound_name>:&#x3C;volume>:&#x3C;pitch></td><td>Plays a sound to <strong>mods</strong> (players with <code>crown.mod</code> permission). Parameters are the same as PLAY_SOUND. <a href="https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html">Bukkit Sound enum</a></td></tr><tr><td>TITLE</td><td>TITLE:&#x3C;title>:&#x3C;subtitle>:&#x3C;time_seconds>:&#x3C;fade_in_ticks>:&#x3C;fade_out_ticks></td><td>Shows a title to the player who clicked the item. &#x3C;title> and &#x3C;subtitle> are text strings, &#x3C;time_seconds> is display duration, &#x3C;fade_in_ticks> and &#x3C;fade_out_ticks> are fade in/out durations.</td></tr><tr><td>TITLE_TARGET</td><td>TITLE_TARGET:&#x3C;title>:&#x3C;subtitle>:&#x3C;time_seconds>:&#x3C;fade_in_ticks>:&#x3C;fade_out_ticks></td><td>Shows a title to the <strong>target player</strong>. Parameters are the same as TITLE.</td></tr><tr><td>TITLE_MODS</td><td>TITLE_MODS:&#x3C;title>:&#x3C;subtitle>:&#x3C;time_seconds>:&#x3C;fade_in_ticks>:&#x3C;fade_out_ticks></td><td>Shows a title to <strong>mods</strong> (players with <code>crown.mod</code> permission). Parameters are the same as TITLE.</td></tr><tr><td>MESSAGE</td><td>MESSAGE:&#x3C;message></td><td>Sends a message to the player who clicked the item. &#x3C;message> is the message text.</td></tr><tr><td>MESSAGE_TARGET</td><td>MESSAGE_TARGET:&#x3C;message></td><td>Sends a message to the <strong>target player</strong>. &#x3C;message> is the message text.</td></tr><tr><td>MESSAGE_MODS</td><td>MESSAGE_MODS:&#x3C;message></td><td>Sends a message to <strong>mods</strong> (players with <code>crown.mod</code> permission). &#x3C;message> is the message text.</td></tr><tr><td>ACTIONBAR</td><td>ACTIONBAR:&#x3C;text></td><td>Sends an actionbar text to the player who clicked the item. &#x3C;text> is the actionbar text.</td></tr><tr><td>ACTIONBAR_TARGET</td><td>ACTIONBAR_TARGET:&#x3C;text></td><td>Sends an actionbar text  to the <strong>target player</strong>. &#x3C;text> is the actionbar text.</td></tr><tr><td>ACTIONBAR_MODS</td><td>ACTIONBAR_MODS:&#x3C;text></td><td>Sends an actionbar text to <strong>mods</strong> (players with <code>crown.mod</code> permission). &#x3C;text> is the actionbar text.</td></tr><tr><td>GIVE_EFFECT_TARGET</td><td>GIVE_EFFECT_TARGET:&#x3C;effect_type>:&#x3C;duration_seconds>:&#x3C;amplifier>:&#x3C;show_particles(optional)></td><td>Gives a potion effect to the <strong>target player</strong>. &#x3C;effect_type> is the PotionEffectType name (namespaced key, e.g., minecraft:slowness), &#x3C;duration_seconds> and &#x3C;amplifier> are integers, &#x3C;show_particles> is optional boolean (default true).</td></tr><tr><td>NO_ACTION</td><td>NO_ACTION:</td><td>Performs no action. Useful for placeholder items or disabling click functionality.</td></tr></tbody></table>
