# Chat Relay

{% hint style="warning" %} <mark style="color:red;">**configs/plugins/DU\_ChatRelay/DU\_ChatRelay.json**</mark>
{% endhint %}

{% hint style="info" %}

1. Display messages that are written ingame on your Discord server. Messages are divided into All, Team and Admin Chat
2. Send a message from your Discord server to your game server.
   {% endhint %}

<div align="center"><figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2FOy5itmmNeM51qvkt1Y52%2Frelay.png?alt=media&#x26;token=1ab194e0-2fc8-4b5e-a514-0fa024bd2e8a" alt="" width="264"><figcaption></figcaption></figure> <figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2Fsofp76XECCqImToUlpPl%2Fchatlog.png?alt=media&#x26;token=42ab5c4d-d38b-4fcc-85f9-e7c3b3b9d0b8" alt=""><figcaption></figcaption></figure></div>

### All/Team Chat Settings

<table><thead><tr><th width="229">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td>If this feature will be available <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Blocked Words</strong></td><td>Which words will not be displayed</td></tr><tr><td><strong>Display Commands</strong></td><td>Will commands also be sent to discord? <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Channel ID</strong></td><td>The Channel ID where the All/Team Chat message will be sent</td></tr></tbody></table>

### Admin Chat Settings

<table><thead><tr><th width="230">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td>If this feature will be available <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Admin Flag</strong></td><td>Flag that allows admin to send messages to Admin Chat</td></tr><tr><td><strong>Channel ID</strong></td><td>The Channel ID where the Admin Chat message will be sent</td></tr></tbody></table>

### Discord Relay Settings

<table><thead><tr><th width="250">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td>If this feature will be available <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Channel ID</strong></td><td>The Channel ID where you will send messages</td></tr><tr><td><strong>Ingame Message Format</strong></td><td>What the message will look like when sent to the game server</td></tr></tbody></table>

{% hint style="success" %}
**To edit the embeds, follow the instructions:** [**Custom Embeds Format**](https://docs.sourcefactory.eu/discord-utilities/tutorials/custom-embeds-format)&#x20;

> Available Variables for <mark style="color:red;">`Ingame Message Format`</mark>

• [**Discord**](https://docs.sourcefactory.eu/available-variables#discord-variables)

> Available Variables for <mark style="color:red;">`All/Team/Admin Chat Log embeds`</mark>

• [**Server**](https://docs.sourcefactory.eu/available-variables#server-variables) **and** [**Player**](https://docs.sourcefactory.eu/available-variables#player-variables)\
**•** <mark style="color:blue;">{MESSAGE}</mark> > Display the message
{% endhint %}
