# Towny Chat

***

### Requires TownyAdvanced

{% tabs %}
{% tab title="Command" %}
&#x20;`/tc` (Toggle Town Chat)\
&#x20;`/tc <message>` (Sends a Message into the Town Chat)\
&#x20;Permission: `zelchat.command.townychat`
{% endtab %}
{% endtabs %}

The ChatChannel supports all the Render Features (\[i] \[inv] \[ec] \[emojis])

```yaml
################################
#                              #
#          Towny Chat          #
#     you can use both         #
#    legacy and minimessage    #
#                              #
################################
#
# Requires https://www.spigotmc.org/resources/towny-advanced.72694/
#
# This Addon will create a ChatChannel for Townies
# Players will be able to toggle the chat with /tc
# or if they prefer directly send a message with /tc <message>
#
enabled: false # Requires a restart when toggled
chat-format: "&e👑 &r%townyadvanced_town% &f%player_name% &8➠ &2%message%"
hover-message: |
  &#25c8fa&lINFO
  <br>&#25c8fa&l▮&r &7ʟɪғᴇ &f%player_health_scale% &c❤
  &#25c8fa&l▮&r &7ʀᴀɴᴋ &f%townyadvanced_resident_primary_rank% &6🛡
  &#25c8fa&l▮&r &7ʙᴀʟᴀɴᴄᴇ &f%vault_eco_balance_formatted% &e$
  &#25c8fa&l▮&r &7ᴄᴏᴏʀᴅs &f%player_x%x %player_y%y %player_z%z ⁜
  

messages:
  needTown: "&#25c8fa&lTOWNY &r&8➠ &fYou must be in a Town to use the chat!"
  chatOn: "&#25c8fa&lTOWNY &r&8➠ &fYou will now chat with your Town!"
  chatOff: "&#25c8fa&lTOWNY &r&8➠ &fYou will no longer chat with your Town!"
  
```


---

# Agent Instructions: 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://natorog.gitbook.io/addons/towny-chat.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.
