Code Monkey home page Code Monkey logo

minecraft-discord-relay's Introduction

Minecraft-Discord-Relay

Minecraft-Discord-Relay (MCDR) is a plugin for Minecraft (spigot) which allows you to connect your server to discord (via discord bot) and relay information from Minecraft to Discord.

This project is no longer worked on.

Please do not use this project. It is old, isn't maintained anymore, and is most likely severely broken (especially with the Discord API changes in 2021).

Tested minecraft version: 1.13 - 1.16

Versions it may work for: 1.7.x - 1.16.x (If these version are inaccurate, inform me and I will do my best to either add a dependency for that version or change the message above depending on how many people want it for x version).


Requirements

  • Spigot/PaperSpigot server.
  • A discord bot with a valid token.
  • one channel for console messages
  • one channel for chat messages

(chat and console messages can be the same but may cause conflict).


Installation

Download the latest .jar from the releases tab or head on over to the spigot page: https://www.spigotmc.org/threads/minecraft-discord-relay-mcdr.415845/.

Once downloaded, place it within your plugins folder located within your server's directory (folder) and run the server. You'll get an error stating that it failed to load, this means that it has created its config file. Go into the config file and edit the values.

Make sure your discord bot is in your server and has permissions to see and chat in the channels (ID form) you gave it.

Once those values are edited correctly, save the config and run the server. If everything is setup correctly, you should see the bot come online and start talking!


Usage

When everything is setup, you can talk in the chat channel you specified to talk in-game via discord. You can also talk in the console channel you specified to execute commands in the console via discord.


Licence

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

minecraft-discord-relay's People

Contributors

dependabot[bot] avatar jaskowicz1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

minecraft-discord-relay's Issues

Actual achievement messages.

Maybe you could make it so that it only sends it for the actual achievements from the advancements tree gets sent? And send the description instead of the "husbandry/root" style name, like it does it in the chat sort of

Credit to GlorifiedPig for the suggestion :)

Originally posted by @GlorifiedPig in #3 (comment)

Relay has stopped working on the following environment

Hello,

Symptoms:

  1. The following is showed in the log file:
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Enabling MinecraftDiscordRelay v1.1.6
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Loading config...
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Config loaded successfully!
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Config checks finished!
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Loading bot...
[14:09:09] [Server thread/WARN]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[14:09:09] [Server thread/WARN]: SLF4J: Defaulting to no-operation (NOP) logger implementation
[14:09:09] [Server thread/WARN]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[14:09:09] [Server thread/WARN]: SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
[14:09:09] [Server thread/WARN]: SLF4J: Defaulting to no-operation MDCAdapter implementation.
[14:09:09] [Server thread/WARN]: SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
[14:09:09] [Server thread/WARN]: [Server thread] INFO JDA - Login Successful!
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Bot loaded successfully!
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Starting logger listener...
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Loaded console logger!
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Registering Listeners...
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Registered Listeners!
[14:09:09] [Server thread/INFO]: [MinecraftDiscordRelay(MCDR)] Finished loading Minecraft Discord Relay (MCDR)!
  1. No messages are relaying in both sides(including commands). However player count and status appears correctly in Bot's status in discord.

additional information:

root@hostname:~# /usr/bin/java -version
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)

Spigot version:  spigot-1.16.3.jar

Config file config.yml:

main:
  botToken: NDY1NTQxNDY2NzM5OT███hO7hxgcuWCSu6o9DzAnKdmxuu8
  consoleChannelID: 68223████405956
  chatChannelID: 682228947████3551
  guildID: 420554964████5058
  advancedConsole: true
  disabledCommands:
  - help

However, it was working on the previous spigot versions. (1.15.*)
Any suggestions?

Thanks in advance.

Minecraft Chat on Discord isn't working

On my Discord, my bot shows that there is 1 player on the server (this is currently true), but if I write something in the chat, it does not show on the channel :/

On server console, I got messages like this:
[INFO] [MinecraftDiscordRelay(MCDR)] Enabling MinecraftDiscordRelay v1.1.6
[INFO] [MinecraftDiscordRelay(MCDR)] Loading config...
[INFO] [MinecraftDiscordRelay(MCDR)] Config loaded successfully!
[INFO] [MinecraftDiscordRelay(MCDR)] Config checks finished!
[INFO] [MinecraftDiscordRelay(MCDR)] Loading bot...
[INFO] [MinecraftDiscordRelay(MCDR)] Bot loaded successfully!
[INFO] [MinecraftDiscordRelay(MCDR)] Starting logger listener...
[INFO] [MinecraftDiscordRelay(MCDR)] Loaded console logger!
[INFO] [MinecraftDiscordRelay(MCDR)] Registering Listeners...
[INFO] [MinecraftDiscordRelay(MCDR)] Registered Listeners!
[INFO] [MinecraftDiscordRelay(MCDR)] Finished loading Minecraft Discord Relay (MCDR)!

It looks like it's supposed to work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.