Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Discord

Matej Pacan edited this page Oct 21, 2020 · 14 revisions

ChatControl can use its channel functionality to hook into your Discord server and display messages on Discord in your respective channels. You need the plugin DiscordSRV to integrate it.

NOTICE: DiscordSRV updates frequently and tends to break the API. If you get any errors please open a ticket soon so we can check if ChatControl needs to update.

Important: Before continuing, set "Debug" key in settings.yml to "[discord]" and restart. This will save you HOURS and print out what is happening to the console. After you are finished with your setup, you can remove the value.

How to Use

You can send messages to Discord from your chat, channels, admin or bungee chat, join/quit/death messages and more. Here's how:

  1. Copy the channel ID of your channel to which you want to send chat messages. Open up Discord client, right click your channel and select Copy ID. Copy ID

  2. Open up config.yml in your server's plugins/DiscordSRV. Insert , "channel-name": "channel-id" at the end of Channels or without the initial ',' in case your Channels are empty. In this case the channel-name is staff-chat, in your case this will be the Discord channel you want DiscordSRV to register so you can use it in ChatControl. Set the channel-id to the one from above.

Link config.yml

  1. Now it's time to link the channel in ChatControl. Open the desired location in our settings where you want to use that channel and set it to the same channel-name, in this case, 'staff-chat'.

Link ChatControl

The same approach applies for other places in ChatControl such as your main chat:

Link formatting.yml

Special note for channels: Make sure you channels on ChatControl and DiscordSRV have exact names (case sensitive), and it should be running automatically. Also ensure to have Discord option in there on true otherwise the message won't show.

External Tutorials

You can also find a tutorial on how to hook DiscordSRV with your discord at their Overview page on Spigot.

You also must link your Discord channels in DiscordSRV's config.yml, see https://github.com/DiscordSRV/DiscordSRV/blob/master/src/main/resources/config/en.yml

Clone this wiki locally