# Staff Chat

{% hint style="info" %}
This functionality requires the DiscordSRV plugin
{% endhint %}

You can use the discord integration plugin to setup a staff-chat channel and synchronize messages between in-game and discord chat.\
\
To do so you must have the DiscordSRV bot configured as described here: <https://docs.dedicatedmc.io/plugins-mods/how-to-install-discordsrv/>\
\
Once this is setup you can start setting up Staff++ Discord.

### **Discord setup**

Go into Discord and create a new channel. The channel name can be whatever you want.

![](/files/-MVWbrULqKVH6iu6Nect)

![](/files/-MVWc3U8hOoJTOEFUvea)

Go ahead an grab the **channel id** by right clicking on the channel name and selecting **copy id:**

![](/files/-MVWfmTDwt3xcStw5S3q)

### DiscordSRV Configuration

Open the **config.yml** file of the DiscordSRV plugin. Add your channel id to the channels array.\
The identifier inside the array must be **"staffplusplus-\<channelname>" .** By default staff++ only has one staffchat channel, name "staffchat". So in this case I will configure "**staffplusplus-staffchat**".\
\
If you have for example another channel configured in staff++ called **"adminchat",** you can add another channel in the discordsrv config called "**staffplusplus-adminchat**".<br>

```yaml
Channels: { "global": "000000000000000000", "staffplusplus-staffchat": "xxxxxxxxxxxxxxxxxxxxx"}
```

#### Channel custom formatting

In DiscordSRV you can have custom formatting for every channel differently. To have custom formatting inside DiscordSRV open up the language file inside the `messages` folder of DiscordSRV

```yaml
MinecraftChatToDiscordMessageFormat: "**%primarygroup%** %displayname% » %message%"
MinecraftChatToDiscordMessageFormatNoPrimaryGroup: "%displayname% » %message%"

MinecraftChatToDiscordMessageFormat_staffplusplus-staffchat: "**(STAFFCHAT)** %displayname% » %message%"
MinecraftChatToDiscordMessageFormatNoPrimaryGroup_staffplusplus-staffchat: "**(STAFFCHAT)** %displayname% » %message%"
```

You can set a format for your specific channel by adding `MinecraftChatToDiscordMessageFormat_staffplusplus-staffchat`

### Staff++ Discord Configuration

Open the config.yml of the Staff++ plugin. And enable staffchat sync.

```yaml
StaffPlusPlusDiscord:
  staffchat:
    sync: true
```

That's it! Restart your server and you will be see that message in game get displayed inside your discord channel and vice versa. &#x20;

### Example messages

![](/files/-MVWjhM7I0S3lYZsPKeS)

![](/files/-MVWjwIRiPvluRGgz4qQ)


---

# 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://wiki.staffplusplus.org/integrations/discord-integration/staff-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.
