Comments (5)
Hi, that's a really strange issue !
Did you enabled / disabled anything in the config ?
Are you on the last forge version ?
Denis
from mc2discord.
On the latest Recommended Forge 1.16.3 - 34.1.0
It worked without error last night, I restarted the server today as I am changing the world seed. Restarted the server and received the stack trace and noticed that the chat from inside minecraft does not relay, but the status messages do. Last night all functions were working. This is very strange to me as well, as the NoClassDef usually points to a build with dependency or Classpath issue. Are there any expected classpath settings needed for the mod?
I removed most of the comments for Brevity and removed my token / discord server for security, but here is the rest of my config:
`
[Discord]
# Token of the discord bot
token = "removed_for_security"
# Discord Channels Ids
[Discord.Channels]
chat = 764941471177506840
info = 764941471177506840
Messages settings
[Messages]
# Join & leave settings
[Messages.JoinLeave]
leave = "${player_name} left the game."
join = "${player_name} joined the game."
enabled = true
[Messages.StartStop]
stop = "The server has stopped."
start = "The server has started."
enabled = true
crash = "The server has crashed."
[Messages.Death]
message = "${death_message}"
enabled = true
[Messages.Advancement]
hiddenAdvancementsList = []
message = "${player_name} has made the advancement ${advancement_title}. ${advancement_description}."
enabled = true
[Status]
[Status.ChannelName]
channel = 764941471177506840
updatePeriod = 610
message = "Players : ${global_online_players} / ${global_max_players}"
# Enable channel name update
enabled = false
[Status.Presence]
updatePeriod = 60
message = "${global_online_players} / ${global_max_players} players"
enabled = true
[Status.Topic]
channel = 764941471177506840
updatePeriod = 610
message = "${global_online_players} / ${global_max_players} players"
# Enable topic update
enabled = false
[Commands]
[Commands.DiscordCommand]
link = "https://discord.gg/changed_for_security"
enabled = false
[Commands.CommandsIntegration]
commandAllowedRolesIds = []
codeblocksEnabled = true
prefix = "/"
commandAllowedUsersIds = []
errorMessage = "You don't have enough permission or the command doesn't exist"
allowedCommandForEveryone = ["help"]
[Webhooks]
avatarAPI = "https://mc-heads.net/head/${player_name}"
nameFormat = "${player_name}"
# Enable the use of webhooks (customized profile picture and name)
enabled = false
disabledFormat = "**${player_name}** : ${message}"
[Webhooks.Server]
avatarURL = ""
name = ""
[Miscellaneous]
nicknameEnabled = true
mentionsEnabled = false
botMessageRelayEnabled = true
Variables settings
[Variables]
chatFormat = "<Discord - ${discord_user_name}> "
dateFormat = "yyyy-MM-dd HH:mm:ss"
uptimeFormat = "HH:mm"`
from mc2discord.
I think you can close this. I am not sure what exactly fixed it, but here is what I did:
- Deleted Worlds folder and I moved all my mods out of the .minecraft/mods folder
- Deleted the files for the mods out of the .minecraft/config directory
- Loaded only minecraft2discord.jar into mods folder with my config file in config folder
- Start Server - Everything works
- Stop Server -> Load another mod, Start Server -> All Working
- Rinse and Repeat for every mod, Everything is working.
It must have been something in my world folder or a different mods config file that caused the issue. Just strange that it caused the class loader for minecraft2discord to mess up and no other classes.
Again, I am using all the same jar files again and now it works /cheers
Log sample, logs now clean
[21:03:12] [Server thread/INFO] [minecraft/DedicatedServer]: Done (9.373s)! For help, type "help" [21:03:14] [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! [21:03:14] [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 [21:03:14] [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! [21:03:14] [JDA MainWS-ReadThread/INFO] [ml.de.mi.Minecraft2Discord/]: Discord bot logged as MinecraftServerMonitor [21:03:21] [JDA MainWS-ReadThread/INFO] [minecraft/DedicatedServer]: <Discord - Obfuscated> test
from mc2discord.
Yeah thats' really strange... Another question because it's an issue reported on the discord : Did you experience any high cpu and ram usage using the last m2d version ? (something that wasn't there on previous versions)
from mc2discord.
Issue is fixed in 2.0.5 update
from mc2discord.
Related Issues (20)
- Console Error - Did not observe any item or terminal signal within 3000ms in 'publishOn' HOT 1
- Source emited more than one item Error HOT 4
- Current emoji code doesnt support animated emojis. HOT 4
- [1.12.2][Feature Request] Ignore cancelled chat events HOT 2
- 1.12.2 mod ver 3.2.11 HOT 4
- Trying to use relay_bot_messages option HOT 5
- 1.20.1 Console Errors? Slow minecraft to discord translation. HOT 2
- Log time is not recorded HOT 1
- 1.19.2 HOT 7
- [1.12.2] Server crashing on wrong `/tellraw` command HOT 2
- [1.12.2] Wrong image message HOT 2
- [1.20.1] Formatting not working. Bot name shows in the message & Discord Name doesn't get shown in-game. HOT 9
- Server Crash on world load HOT 3
- Datapacks fail to load when starting a server that has a datapack with a load or tick function installed HOT 4
- Hi is there a way to access the code of the bot to change the format of the messages sent to the server ? HOT 2
- In game chat not going to discord HOT 4
- fabric 1.19.2 HOT 4
- Mixin log spam HOT 1
- Msgs go into nowhere HOT 1
- everything working but / commands and mc chat HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mc2discord.