DiscordSRV
DiscordSRV
The most powerful, configurable, widely loved, open-source Discord bridge plugin out there.
Build server - get the absolute latest builds (or old ones) here
Competition - See why you should be using DiscordSRV over the competitors
DiscordSRV's Discord server - come here for quick support and to tell us feature requests
Source at GitHub
Wiki on GitHub
Intended usage
Using this plugin, you are able to give players the ability to chat in-game to chat with players on your Discord server as well as having people on the Discord server be able to chat with people on the server- this is useful for the situation of someone not being at their computer and being able to talk in-game.
As well as that, this plugin also has a remote console feature. You can designate a text channel for the plugin to listen on where messages sent to that channel are run as commands by the server console. You should restrict sending this channel to a developer or high ranking role only. Due to how Discord's permissions work, though, you can have some server roles being able to see the console, yet not being able to send messages in that channel, thus creating a read-only console for trusted staff members.
Both the chat and console link are toggleable through the configuration file. Some, but not all, options can be refreshed with /discord reload, by an op. VanishNoPacket permissions like silent join/quit, fake join/quit and join without announcing are checked when sending player join messages in the chat channel.
Install
It's recommended to go to DiscordSRV's wiki at https://github.com/Scarsz/DiscordSRV/wiki/Installation for picture instructions or watch one of the vidoes below to walk you through the installation.
If you want a straight-forward install, though, you can just follow these steps:
- Create a new application at https://discordapp.com/developers/applications/
- On the application's page, go to the "Bot" tab, click "Add Bot", and confirm
- Optional: set your bot's avatar. If you don't do it now, you can later by command.
- Enable the SERVER MEMBERS INTENT and MESSAGE CONTENT INTENT options under "Privileged Gateway Intents" on the bot tab
- Click the copy button under "Token" on the bot tab, we'll be using it later
- Install the plugin, run & stop the server, then open the configuration file
- Paste the token you copied earlier into the BotToken value
- Go to https://scarsz.me/authorize & paste your application's Client ID value to the page
- Find your client ID in the "General Information" tab
- In the config option labeled Channels, input the Discord channel ID you want to be for your chat under "global"- you can set more channels up here and their linked channels.
- If you are using TownyChat, change the channel to "general" instead of "global"
- For reference, to obtain a channel ID, go to the cog on the bottom left of Discord, go to the appearance tab, enable developer mode. From there you can right click a guild, channel, user, or role and there will be a "Copy ID" option
- Optionally add a console channels ID in the config to access your server console from Discord
- Run through all the config options, you'll be surprised with how many features this plugin has
- Profit
Supported plugins
DiscordSRV implements with a fair amount of plugins for chat and vanish functionality. We recommend VentureChat by Aust1n46 but plugins such as Herochat, VentureChat, Essentials, Premium/Super vanish, VanishNoPacket, and Multiverse all have functionality in DiscordSRV.
Commands/permissions
/discord
All of DiscordSRV's commands can be exposed from /discord. This includes but isn't limited to /discord toggle which toggles sending Discord messages back/forth for you- tell your players about this command!
discordsrv.chat
Allows people to have their chat sent to Discord. Go figure. Given by default, only exists so you can negate this permission from people/groups.
OP
All the admin commands for DiscordSRV require you to be an OP. To see the help, run /discordsrv in-game.
FAQ
How do I fix the error "Unsupported major.minor version 52.0?"
Update the server's Java JRE version to Java 8. <1.8 is unsupported.
I reloaded the plugin/server and now it won't work
DON'T RELOAD THE PLUGIN. IT BREAKS IT.
When I join/quit my server, a message isn't sent in the chat channel for me. What gives?
You have one of VanishNoPacket's/Essentials' permissions to join/quit silently. To disallow this, give yourself or the group one of the following depending on what you want to allow.
-discordsrv.silentjoin -discordsrv.silentquit
Donations
First off, thank you from the bottom of my heart for the pizza. If you would like to donate, go to https://paypal.me/Scarsz. $10 is the suggested amount but you can donate however much you would like- anything is a massive thank you from me. In the note put your Discord username and if you're in DiscordSRV's server you'll be set as a donator and you'll receive some neat perks in the future. If you donated without the note, send me a PM on Discord and I'll manually check it.
Developers
If you want to interface DiscordSRV with your plugin, you can do so by adding the Maven dependency or adding the plugin jar to your project. For an example of this, see https://github.com/Scarsz/DiscordSRV-ApiTest. Be sure to add "DiscordSRV" to your plugin's plugin.yml depends/softdepends list.
Data usage
Data collection
Anything and everything shown at https://bstats.org/plugin/bukkit/DiscordSRV will be visible to the public with your server included in the statistics. This is only for statistics, no private information of your server is sent. If you don't want your server included in this, specify the config option "MetricsDisabled" and set it to "true" in the config.
Update checking
I have absolutely no clue why you would want to disable this, but if you do, set the "UpdateCheckDisabled" config option to "true".
hey scarssz please add 1.18 and 1.18.1 to the plugin PLEASE
Amazing!!! Wiki helped me a lot.
hey is it possible to turn off the colors on peoples name like the highest rank on the server etc? i want to use the vanilla color choices to show when they chat ingame and such, evry1 have their own color and such any help would be great
Hello,
It's possible that the bot send message when the minecraft server just started ?
Thanks for reply ;)
Hi,
I had made an update 2 or 3 months ago. But without success so I went back to 1.19.0 There today I retry an update by trying to find why the bot does not return to discord. After several attempts, I realized that this comes from the reboot that also happens, when I stop and restart the server while I go through the panel for reboot. The problem is that I have a daily reboot at 03.00 a.m. ... How corrected that, because I have to go back to the previous version so as not to have this problem.
Can you, help me ?
In reply to Forge_User_83048262:
Read your log for errors from DiscordSRV.
In reply to Gammoose:
I have not log from DISCORDSRV. I have just load "config 1.19.0" in file for fix and load DISCORDSERV1.20.jar and good. I upload one movie for watch my problem
I have check my panel and i have found this :
In reply to Forge_User_83048262:
In reply to Forge_User_83048262:
Sure looks like an error to me. https://discordsrv.com/discord #support
In reply to Gammoose:
In reply to Gammoose:
When I update to the newest version (1.20.0) it stops working. As soon as I put it back on 1.19.1 it works again. I am clearly missing something, but I don't know what it is.
In reply to filry2001:
Read the top of the changelog, https://www.curseforge.com/minecraft/bukkit-plugins/discordsrv/files/3067952
Is there Javadocs around here so I can implement it into my plugin I am making a lot easier?
I have managed to make everything work but if I try to send a command (/gamemode creative Jan64X) through the discord thing it doesn't work and says 'Unknown command. Type "/help" for help.' How do I fix this?
Quote from curlyoyster06 >>
https://discordsrv.com/discord #support
Yea is there a discord i can join for some support or anything because i have tried look at everything even videos and I cant get this DiscordSrv thing to work idk why but it just wont work.
I did everything like you wrote and I can write from the discord but I literally can't write in the Minecraft chat. the discord message shows up in the Minecraft chat.
In reply to smadi_gaming:
https://discordsrv.com/discord #support
ok, i need help bad, i did everything correct but i added this plugin to the server i just bought and the plugin is not working, on discord you message something and it shows up in minecraft chat, but when we say something in minecraft chat, it does not show up in discord? please help
Good day!
I have a problem when I input '/discord link' in the game。
My server located in China Main Land. Due to some reasons, we coun't visit discord
directly. I have checked my user-rule.txt in ShadowsocksR. Rules about discord are attached. I can also use discord in his application when ShadowsocksR working.
I set 'debug' to 1. Here are all info about DiscordSRV on console.
Is my server couldn't connect to DiscordAPI?