> For the complete documentation index, see [llms.txt](https://yowsef-development.gitbook.io/yowsef-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yowsef-development.gitbook.io/yowsef-development-docs/features/chat-hover.md).

# chat hover

DialogMaster adds interactive hover effects and click actions to chat messages using Minecraft's Adventure API.

## Chat Hover Triggers

Configure hover messages inside `config.yml` under the `chat-hover:` block.

### Configuration fields

| Field           | Description                                              |
| --------------- | -------------------------------------------------------- |
| `enabled`       | Toggle this trigger on/off                               |
| `text`          | The chat message (MiniMessage + PlaceholderAPI)          |
| `hover.type`    | `show-text` or `show-item`                               |
| `hover.content` | Text shown when hovering (for `show-text`)               |
| `click.type`    | `run-command`, `suggest-command`, or `copy-to-clipboard` |
| `click.value`   | The command or text payload                              |

## Example Configuration

```yaml
chat-hover:

  join-message:
    enabled: true
    text: "<green>➤ <aqua>%player_name%</aqua> joined!"
    hover:
      type: show-text
      content: |
        <gray>Balance: <gold>$%vault_eco_balance%
        <gray>Kills: <red>%statistic_player_kills%
        <gray>Click to view profile
    click:
      type: run-command
      value: "/profile %player_name%"

  quit-message:
    enabled: true
    text: "<red>➤ <aqua>%player_name%</aqua> left the server."
    hover:
      type: show-text
      content: "<gray>Goodbye, <aqua>%player_name%</aqua>!"
    click:
      type: suggest-command
      value: "/msg %player_name% "

  server-ip-broadcast:
    enabled: true
    text: "<gray>Connect at: <aqua>play.yourserver.net"
    hover:
      type: show-text
      content: "<gray>Click to copy the IP!"
    click:
      type: copy-to-clipboard
      value: "play.yourserver.net"
```

## Item Share (`/share`)

Lets players broadcast the item in their main hand to chat. Hovering over the item name shows the full native Minecraft item tooltip (name, enchants, lore).

```yaml
chat-hover:
  item-share:
    enabled: true
    trigger-command: "share"
    prefix: "<gold>[Share] <aqua>%player_name%</aqua> is showing: "
    hover:
      type: show-item
    click:
      type: run-command
      value: "/inspect %player_name%"
```

The command is registered dynamically based on `trigger-command`. Permission: `dialogmaster.share`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yowsef-development.gitbook.io/yowsef-development-docs/features/chat-hover.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
