Discord Chat with CubeRite - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Discussion (https://forum.cuberite.org/forum-5.html) +--- Thread: Discord Chat with CubeRite (/thread-3298.html) |
Discord Chat with CubeRite - Greaper88 - 05-24-2020 Just thought that this may be useful for some of you server admins out there. Particularly those of you who have a Discord server, and may be familiar with DiscordSRV and similar plugins for Bukkit-based servers. For those of you who don't know, these plugins allow the Minecraft server to cross-chat with a Discord server. Unfortunately, there is no such plugin for Cuberite, however, I have found a method that works. Requirements: You will need to use either BungeeCord or Waterfall. You can get BungeeCord from www.spigotmc.org or Waterfall from papermc.io From here on out, I will refer to both of these proxies as "BungeeCord" or "Bungee" unless special clarification is needed as Waterfall is just a performance tweaked fork of Bungee. You will also need this Plugin, it is the only one I have found that works without needing a companion plugin on the backend servers. https://www.spigotmc.org/resources/discord-chat-with-minecraft-spigot-bungeecord.59550/ This plugin requires the use of a dependency, which is found at https://www.spigotmc.org/resources/discord-bot-api-jda.49783/ BungeeCord/Waterfall Setup: There are multiple tutorials available online, and any tutorials for BungeeCord will work exactly for Waterfall. If you only plan to run one server, I strongly recommend setting the "ping_passthrough:" line to "true" as this will pass the information from your Cuberite server to your players' server lisitng instead of Bungee's information. Install the plugins to the /plugins folder in your Bungee folder. You will need to start, then "end" the server to generate the initial files. Server Setup: You will need to configure the settings.ini for CubeRite to work with bungee. Thise means setting Authenticate=0 and setting AllowBungeeCord=1. Discord Setup: You will need to create a new app and add a bot to it. Again, there are tutorials available for this. Plugin Setup: Once you have stopped the server, you will need to configure the plugin. The "DiscordBot API" plugin needs nothing to be changed. It's just a framework that the actual chat plugin uses to function. Go into the "DiscordChatWM" folder inside your plugins folder and open the "config.yml" file for editing. On Windows you can use Notepad, Notepad++, or any other OS the default system text editor should work no issues. You will need to tell the plugin how to work. I have an example config posted, this is the one I use with my anarchy network. The most important setting (aside from the Discord and bot ids of course) is probably "use_only_bungeecord:" This needs to be set to "true" for things to work properly. I also disable the "use_verify" and keep in mind that the bot's variable of <role> also does not work, so is best removed. I personally replace it with [Discord] so the players know it's from the Discord. Code: # Plugin made by alandioda [BungeeCord] |