Giter VIP home page Giter VIP logo

mc2discord's Introduction

Curseforge page Modrinth page Support Server Invite

Mc2Discord

Link your Minecraft server chat with your Discord



⚠️ This mod needs configuration to work properly. Please take a look to the wiki: https://github.com/DenisD3D/Mc2Discord/wiki

Features

  • Send Minecraft chat message to your Discord server
  • Send message in your Discord server to the Minecraft chat
  • Send game events message to Discord (player join, player leave, death, etc.)
  • Display player's head as profile picture in Discord thanks to webhook mode
  • Execute Minecraft commands on Discord
  • Customize bot presence (eg: playing at xxx) and channel name / topic
  • Provide an invitation link to your Discord server with the /discord command
  • Forward the server console to discord (useful for admins)
  • Hide player on Discord (useful for admins, integrate with VanishMod)
  • Account linking (forced or optional)
  • Fully customizable, easy configuration (messages, behavior, etc.)
  • Relay others mods announcements
  • Works with Emojiful to display emojis ingame

Features

Try without installing

Join the official demo server hosted by MtxServ

  • Join the demo discord channel #access-demo
  • Start the sever with /start command (server is usually stopped)
  • Connect to m2d-demo.denisd3d.fr with minecraft 1.20.2 Vanilla

Installation

A quick configuration is mandatory for the mod to work. Steps are described on the wiki: https://github.com/DenisD3D/Mc2Discord/wiki

If you need any help or want new features, you can join the Discord support server

You can also watch the video tutorial:

Misc

Links

Demo server hosted thanks to MtxServ
MtxServ

mc2discord's People

Contributors

denisd3d avatar pixvoxel avatar swanx1 avatar thearchyhelios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mc2discord's Issues

ClassLoader Issue

Possible ClassLoader issue?

Server Logs on startup are showing java.lang.ClassNotFoundException for multiple classes within the minecraft2discord-forge-1.16.3.-2.0.4.jar on server: forge-1.16.3-34.1.0.jar

Six Mods in use:
blame-1.16.3-1.4.3.jar
corpse-1.16.3-1.0.5.jar
jei-1.16.3-7.6.0.45.jar
minecraft2discord-forge-1.16.3-2.0.4.jar
Xaeros_Minimap_20.25.1_Forge_1.16.3.jar
Xaeros_WorldMap_1.11.0_Forge_1.16.3.jar

I can navigate to the classes within the JAR file, but server is unable to locate the class files. Attempted re-download of jar file and replaced into mods folder, same result.

Part of the mod is working, the bot logs in and announces server startup and server stop in Discord.

openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)

See attached log:

[12Oct2020 12:35:17.321] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Done (2.179s)! For help, type "help" [12Oct2020 12:35:20.729] [Server thread/INFO] [STDERR/]: [ml.denisd3d.repack.org.slf4j.impl.SimpleLogger:write:318]: [Server thread] INFO ml.denisd3d.repack.net.dv8tion.jda.api.JDA - Login Successful! [12Oct2020 12:35:21.044] [JDA MainWS-ReadThread/INFO] [STDERR/]: [ml.denisd3d.repack.org.slf4j.impl.SimpleLogger:write:318]: [JDA MainWS-ReadThread] INFO ml.denisd3d.repack.net.dv8tion.jda.internal.requests.WebSocketClient - Connected to WebSocket [12Oct2020 12:35:21.314] [JDA MainWS-ReadThread/INFO] [STDERR/]: [ml.denisd3d.repack.org.slf4j.impl.SimpleLogger:write:318]: [JDA MainWS-ReadThread] INFO ml.denisd3d.repack.net.dv8tion.jda.api.JDA - Finished Loading! [12Oct2020 12:35:21.340] [JDA MainWS-ReadThread/INFO] [ml.denisd3d.minecraft2discord.Minecraft2Discord/]: Discord bot logged as MinecraftServerMonitor [12Oct2020 12:35:21.481] [ForkJoinPool.commonPool-worker-9/ERROR] [net.minecraftforge.eventbus.EventSubclassTransformer/EVENTBUS]: Could not find parent ml/denisd3d/repack/net/dv8tion/jda/internal/entities/AbstractMessage for class ml/denisd3d/repack/net/dv8tion/jda/internal/entities/DataMessage in classloader sun.misc.Launcher$AppClassLoader@232204a1 on thread Thread[ForkJoinPool.commonPool-worker-9,5,main] [12Oct2020 12:35:21.548] [ForkJoinPool.commonPool-worker-9/ERROR] [net.minecraftforge.eventbus.EventSubclassTransformer/EVENTBUS]: An error occurred building event handler java.lang.ClassNotFoundException: ml.denisd3d.repack.net.dv8tion.jda.internal.entities.AbstractMessage at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_265] at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_265] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[?:1.8.0_265] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_265] at net.minecraftforge.eventbus.EventSubclassTransformer.buildEvents(EventSubclassTransformer.java:62) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.EventSubclassTransformer.transform(EventSubclassTransformer.java:44) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.EventBusEngine.processClass(EventBusEngine.java:21) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.service.ModLauncherService.processClassWithFlags(ModLauncherService.java:20) ~[eventbus-3.0.3-service.jar:3.0.3+63+master.b6b4769] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:119) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:256) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:135) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:97) ~[modlauncher-7.0.1.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_265] at ml.denisd3d.repack.net.dv8tion.jda.api.MessageBuilder.build(MessageBuilder.java:1179) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendTheMessage(MessageManager.java:75) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendMessage(MessageManager.java:44) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendMessage(MessageManager.java:86) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendFormattedMessage(MessageManager.java:111) ~[?:?] at ml.denisd3d.minecraft2discord.events.DiscordEvents.sendStartMessage(DiscordEvents.java:40) ~[?:?] at ml.denisd3d.minecraft2discord.managers.WebhookManager.addWebhookClient(WebhookManager.java:24) ~[?:?] at ml.denisd3d.minecraft2discord.events.DiscordEvents.lambda$onReady$0(DiscordEvents.java:53) ~[?:?] at ml.denisd3d.minecraft2discord.managers.WebhookManager.lambda$addWebhookClient$4(WebhookManager.java:59) ~[?:?] at ml.denisd3d.repack.net.dv8tion.jda.api.requests.Request.lambda$onSuccess$0(Request.java:95) ~[?:?] at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) [?:1.8.0_265] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_265] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_265] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_265] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) [?:1.8.0_265] [12Oct2020 12:35:21.562] [ForkJoinPool.commonPool-worker-9/ERROR] [net.minecraftforge.eventbus.EventSubclassTransformer/EVENTBUS]: Could not find parent ml/denisd3d/repack/net/dv8tion/jda/internal/requests/RestActionImpl for class ml/denisd3d/repack/net/dv8tion/jda/internal/requests/restaction/MessageActionImpl in classloader sun.misc.Launcher$AppClassLoader@232204a1 on thread Thread[ForkJoinPool.commonPool-worker-9,5,main] [12Oct2020 12:35:21.566] [ForkJoinPool.commonPool-worker-9/ERROR] [net.minecraftforge.eventbus.EventSubclassTransformer/EVENTBUS]: An error occurred building event handler java.lang.ClassNotFoundException: ml.denisd3d.repack.net.dv8tion.jda.internal.requests.RestActionImpl at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_265] at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_265] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[?:1.8.0_265] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_265] at net.minecraftforge.eventbus.EventSubclassTransformer.buildEvents(EventSubclassTransformer.java:62) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.EventSubclassTransformer.transform(EventSubclassTransformer.java:44) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.EventBusEngine.processClass(EventBusEngine.java:21) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.service.ModLauncherService.processClassWithFlags(ModLauncherService.java:20) ~[eventbus-3.0.3-service.jar:3.0.3+63+master.b6b4769] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:119) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:256) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:135) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:97) ~[modlauncher-7.0.1.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_265] at ml.denisd3d.repack.net.dv8tion.jda.api.entities.MessageChannel.sendMessage(MessageChannel.java:502) ~[?:?] at ml.denisd3d.repack.net.dv8tion.jda.internal.entities.TextChannelImpl.sendMessage(TextChannelImpl.java:366) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendTheMessage(MessageManager.java:75) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendMessage(MessageManager.java:44) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendMessage(MessageManager.java:86) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendFormattedMessage(MessageManager.java:111) ~[?:?] at ml.denisd3d.minecraft2discord.events.DiscordEvents.sendStartMessage(DiscordEvents.java:40) ~[?:?] at ml.denisd3d.minecraft2discord.managers.WebhookManager.addWebhookClient(WebhookManager.java:24) ~[?:?] at ml.denisd3d.minecraft2discord.events.DiscordEvents.lambda$onReady$0(DiscordEvents.java:53) ~[?:?] at ml.denisd3d.minecraft2discord.managers.WebhookManager.lambda$addWebhookClient$4(WebhookManager.java:59) ~[?:?] at ml.denisd3d.repack.net.dv8tion.jda.api.requests.Request.lambda$onSuccess$0(Request.java:95) ~[?:?] at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) [?:1.8.0_265] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_265] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_265] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_265] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) [?:1.8.0_265] [12Oct2020 12:35:21.586] [ForkJoinPool.commonPool-worker-9/ERROR] [net.minecraftforge.eventbus.EventSubclassTransformer/EVENTBUS]: Could not find parent ml/denisd3d/repack/okhttp3/RequestBody for class ml/denisd3d/repack/okhttp3/MultipartBody in classloader sun.misc.Launcher$AppClassLoader@232204a1 on thread Thread[ForkJoinPool.commonPool-worker-9,5,main] [12Oct2020 12:35:21.619] [ForkJoinPool.commonPool-worker-9/ERROR] [net.minecraftforge.eventbus.EventSubclassTransformer/EVENTBUS]: An error occurred building event handler java.lang.ClassNotFoundException: ml.denisd3d.repack.okhttp3.RequestBody at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_265] at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_265] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[?:1.8.0_265] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_265] at net.minecraftforge.eventbus.EventSubclassTransformer.buildEvents(EventSubclassTransformer.java:62) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.EventSubclassTransformer.transform(EventSubclassTransformer.java:44) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.EventBusEngine.processClass(EventBusEngine.java:21) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.service.ModLauncherService.processClassWithFlags(ModLauncherService.java:20) ~[eventbus-3.0.3-service.jar:3.0.3+63+master.b6b4769] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:119) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:256) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:135) ~[modlauncher-7.0.1.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:97) ~[modlauncher-7.0.1.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_265] at ml.denisd3d.repack.net.dv8tion.jda.api.entities.MessageChannel.sendMessage(MessageChannel.java:502) ~[?:?] at ml.denisd3d.repack.net.dv8tion.jda.internal.entities.TextChannelImpl.sendMessage(TextChannelImpl.java:366) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendTheMessage(MessageManager.java:75) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendMessage(MessageManager.java:44) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendMessage(MessageManager.java:86) ~[?:?] at ml.denisd3d.minecraft2discord.managers.MessageManager.sendFormattedMessage(MessageManager.java:111) ~[?:?] at ml.denisd3d.minecraft2discord.events.DiscordEvents.sendStartMessage(DiscordEvents.java:40) ~[?:?] at ml.denisd3d.minecraft2discord.managers.WebhookManager.addWebhookClient(WebhookManager.java:24) ~[?:?] at ml.denisd3d.minecraft2discord.events.DiscordEvents.lambda$onReady$0(DiscordEvents.java:53) ~[?:?] at ml.denisd3d.minecraft2discord.managers.WebhookManager.lambda$addWebhookClient$4(WebhookManager.java:59) ~[?:?] at ml.denisd3d.repack.net.dv8tion.jda.api.requests.Request.lambda$onSuccess$0(Request.java:95) ~[?:?] at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) [?:1.8.0_265] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_265] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_265] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_265] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) [?:1.8.0_265]

Players' messages are not sent to Discord when they are part of a /team with a prefix that has a space in it

Hi!

We just started using the mod on our server and have not had any issues with it up until now. However, we just discovered that if a player is part of a team and that team has a prefix with a space in it (such as "[Server Helper]", "[Mod] ", etc.), the mod will log an error and not send any of their messages to Discord. If the player then leaves the team or joins another team that does not have a prefix with a space in it, their messages will start to be sent again.

Here's the error that is logged. We are using Minecraft 1.16.5, Forge 36.0.22 and 36.0.45, and Mc2Discord 2.0.6. Thanks!

Server Crash Exception in server tick loop from minecraft2discord-forge-1.16.x-3.0.2

Server Crash Exception in server tick loop

i was just testing it on my desktop server before i added it to public server i was also trying to create a new config last time i updated it reset my old config so i wanted to make new one and add it at the same time but i it started crashing.

Minecraft 1.16.5
Forge 36.0.55 and forge 36.0.58
mod version minecraft2discord-forge-1.16.x-3.0.2

Crash report https://pastebin.com/FK7sNfe6

logs https://www.dropbox.com/s/ps6xsu6iclxvoxu/latest.log?dl=0

Format error response

The Minecraft command errors are already pretty terrible but usually, you can at least infer what they mean.

Would be nice if they were readable 😉
image

Missed Heartbeats, large lag spike

Not entirely sure what causes this. Had a lag spike in-game that causes several players to time out and disconnect. Didn't crash the server however. Only happened once so far, will report if it happens again.

Currently installed in a Valhelsia 2 server.
Attached is the config.
minecraft2discord.txt

Error message:
[JDA Gateway-Worker 1/INFO] [STDERR/]: [ml.denisd3d.repack.org.slf4j.impl.SimpleLogger:write:318]: [JDA Gateway-Worker 1] WARN ml.denisd3d.repack.net.dv8tion.jda.internal.requests.WebSocketClient - Missed 2 heartbeats! Trying to reconnect...

IllegalStateException crash: Cannot get reference as it has already been Garbage Collected

I wasn't around when it happened, but after asking the couple people that were on the server it doesn't sound like they were doing much when it crashed, they were booted from the server, they hadn't gone to disconnect themeslves.

crash report: https://gist.github.com/Corosauce/b9b71b42be689b7763919a9be282d68d

Edit: From discussion with another dev sounds like its due to lazy unreliable design in JDA itself. Damn.

Don't display Invisible Advancements

From a quick look at the advancement code, it seems like Advancement.getDisplay() == null gives an easy way to see if the advancement is supposed to be invisble.

Being able to block some other advancements is still useful though as some mods like to go overboard with the number of advancements they add.

Unable to send from Game to Discord

Hi, first time using this mod.

Having issues sending anything from game to Discord, but sending from Discord to Game works fine.

So when i join game, it doesnt display in discord that ive joned (though does show on the Bot (playing 1/20 players)
Same as when i leave, it doesnt post into the chat ive specified.

When chatting in game, it doesnt send it to discord chat window.
When chatting in discord chat, it DOES send it to game.

Any ideas where im going wrong?

this mod keeps server from stoping

I believe this issue is very similar to a issue i had in the past with szeweq/Flux#22 after they fixed this at first everything was ok but then it stopped working again i thought it was the same mod again but but they said it was fixed yesterday when i updated my server i noticed it stopped like it should did not freeze on saving like it normally does the only deference was i had not added my add on mods to server yet only got 2 of them world edit and this mod after testing both it turns out this mod is the reason for server not coming to a stop when given stop command.

this time i let it sit there and try to stop it did stop 3 minutes after chunks where saved

Minecraft 1.15.2
minecraft2discord-1.15.2-1.1.5
Forge 31.1.77

crash-2020-05-12_07.27.10-server.txt
Capture

Respond to failed commands

Commands with typos right now spit out a stack trace on the console. It would be nice to be able to see an error or something in discord instead.

Some command outputs like for /say also don't appear in discord for some reason.

[1.14.4] Feature request - Advancements show their descriptions in discord.

Another mod we use shows the text of the advancement that you get ingame when mousing over the advancement, would love this.

10:00 AM] BOTProsperbot: SirGorkin just gained the achievement Isn't It Iron Pick!
Upgrade your pickaxe
[10:03 AM] BOTProsperbot: SirGorkin just gained the achievement Marco Polo!
Visit villages of three cultures in the same world
[10:03 AM] BOTProsperbot: SirGorkin just gained the achievement Fernand de Magellan!
Visit villages of all cultures in the same world
[10:04 AM] BOTProsperbot: GarraVk2 just gained the achievement Marco Polo!
Visit villages of three cultures in the same world
[10:04 AM] BOTProsperbot: GarraVk2 just gained the achievement Fernand de Magellan!
Visit villages of all cultures in the same world
[10:05 AM] BOTProsperbot: GarraVk2 just gained the achievement Millénaire!
Meet a Millénaire villager

Handle emotes

The /me <foo> command in Minecraft produces an emote, e.g.,
Input: /me waves
Result: * Malnormalulo waves

Some folks like to use these conversationally, but M2D doesn't pick them up, leaving confusing gaps in the conversation. Would it be possible to pipe these to Discord?

Server Crash

Minecraft 1.14.4
Forge 28.0.82
minecraft2discord-1.14.4-1.0.6

What happens Server Crashes wish i could give more info but im not sure why all i can see
in the crash log is it looks like your bot got advancement and then crashed server here is the crash report https://pastebin.com/zx1ac6Ei if you need more logs let me know.

Can't seem to use MC color codes in chat prefix configs

For example, setting minecraft_chat_format to a value that includes §1 does not color the chat prefix blue, but instead inserts an unknown character. Using "\u00A71" to create the same effect results in no change to the message (possibly getting sanitized out?).

Sorry if there's a way to do this and I'm just not seeing it.

Console spam

Not entirely sure what is causing this but there is a lot of it.
image

version: 1.14.4 1.1.0

Option for OP's to send commands from discord

We are now running your mod on our 1.14 playthrough and its working great (apart from datapacks spamming hidden advancements...).

But one of the features we are missing is being able to send commands to the server via discord. We very often used this for whitelisting more players or profiling without having to join the server/opening up the server console.

Allow certain commands for regular players

There are a couple of commands (like /list and /forge tps and more) where would be nice if they were also available to regular players.

The discord presence can show the number of players online but clicking the bots name (especially if the last bot message is further up) is fairly unintuitive and also doesn't show who is online.

Move Server Started Message

The "Server has Started" message is currently appearing almost a minute before the server is actually ready for people to join. I imagine with the number of mods in the pack growing this will change for the worse.

Maybe move the message to the FMLServerStarted event, or change it to starting and add an additional message for "ready for joining"?

Crash on advancement

https://hatebin.com/pklfhoytqo

the player was saying it was the Acquiring Hardware advancement but I don't think that's actually relevant. The game was running fine (with advancements in discord) for days before this.

Note we were still on 1.0.5.

Player Kill Message cut off.

When killed by something with a name we are getting messages like this in discord.

Buczkeks was killed by [.
tohotforunubs was killed by [.
GhostPDC was killed by [.

Hoping this is not one of the other mods doing it.

minecraft2discord-1.15.2-1.1.4

[Feature request] Add a way for other mods to relay messages

The title pretty much says it.
Something like forge's IMC would be useful for other mods to send their own messages to Discord through this mod.
This could for example be used by Questing mods (FTB Quests, BetterQuesting) to relay their own advancements to Discord.

[1.14.4] Language Provider Startup Crash on Forge 28.1.109

Note: This happened as the mod was added to the modpack Enigmatica 4 (v0.4.4).
I cannot be sure it's not a mod incompatibility issue, but based on the error I assume it's more of a forge issue than some other mod throwing a fit.

Pertinent error message:

net.minecraftforge.fml.ModLoadingException: Mod File minecraft2discord-1.14.4-1.1.1.jar needs language provider javafml:29 or above to load
§7We have found 28.1

Full latest.log can be found at:
https://gist.github.com/VarvatosVex/6fac0a50ec14339bc4582e8d7a08ca5a

Forge version used:
forge-1.14.4-28.1.109.jar

Mod version used:
minecraft2discord-1.14.4-1.1.1.jar

Problem Description:
Server crashes on startup when the mod is added.
When the mod is removed the server starts up perfectly fine.
It seems to be an incompatibility with the version of forge used, but it's specified that the mod supports 28.1.X which is the version I'm using.
Maybe an oopsie happened in mod version 1.1.0 -> 1.1.1?

Update to Minecraft 1.16.5

Hello!
Some packs are starting to use 1.16.5 and this mod wont load there. Any chance you can update it?

incompatible modded server Red X After Updating to m2d 3.0.1 1.16.5

incompatible modded server Red X on server after updating minecraft2discord-forge-1.16.x-3.0.1 I had no Red X on server before updating a lot of the time this means a mod on the server getting flag as being required on Clintside as well of course this is not a serversider mod so show not be showing red x

Minecraft 1.16.5
Forge 35.1.35
minecraft2discord-forge-1.16.x-3.0.1

running minecraft2discord-forge-1.16.5-2.0.6 no red x Ignore EU server there on old version of pack.

image

After Updating to minecraft2discord-forge-1.16.x-3.0.1

image

[1.14.4] Spam from Bot w/ Sleeping Advancement

Software Versions

  • Minecraft 1.14.4
  • Forge 28.1.61
  • MC2Discord 1.1.0

Issue Overview

I was testing on the Geolosys Testing Server (which I run) and wanted to use this mod. As soon as I slept, this was spammed in our chat until I stopped the server:

Other Details

I have no idea if I've done something wrong or not, but I had to go and disable the advancements feature for now. It could be a data pack we're using for multiplayer sleep (1 player is enough to make it day -- it's not a mod but a vanilla data pack that may be firing the advancement repetitively??). I can do further testing if necessary.

Proposed Solution

Regardless if it's a mod compatibility/conflict issue or not, it should probably be filtered to for the connector to not send an incoming message to Discord if the message is the same as the last message and it's been x seconds since that last message was sent.

Handle Emojis

Discord emojis currently appear as ▌▌ in-game.

I don't know how possible it is to display the discord emojis ingame but that would be the ideal solution.

I would be fine with :emojiname: too.

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.