Giter VIP home page Giter VIP logo

Comments (5)

DenisD3D avatar DenisD3D commented on May 24, 2024

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.

LenTheNinja avatar LenTheNinja commented on May 24, 2024

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.

LenTheNinja avatar LenTheNinja commented on May 24, 2024

I think you can close this. I am not sure what exactly fixed it, but here is what I did:

  1. Deleted Worlds folder and I moved all my mods out of the .minecraft/mods folder
  2. Deleted the files for the mods out of the .minecraft/config directory
  3. Loaded only minecraft2discord.jar into mods folder with my config file in config folder
  4. Start Server - Everything works
  5. Stop Server -> Load another mod, Start Server -> All Working
  6. 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.

DenisD3D avatar DenisD3D commented on May 24, 2024

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.

DenisD3D avatar DenisD3D commented on May 24, 2024

Issue is fixed in 2.0.5 update

from mc2discord.

Related Issues (20)

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.