Eufranio / MagiBridge

A Discord <-> Minecraft chat relay plugin
MIT License
47 stars 27 forks source link

Server messages not showing in discord and console gives error #248

Open NicodemusN opened 2 years ago

NicodemusN commented 2 years ago

Hi! I configured the plugin just as the guide told and also made sure to allow the "Privileged Gateway Intents". Still, no messages showing and the console giving this error.

21.08 12:29:25 [Server] Server thread/ [Sponge]: /**********************************************************************************************************************/ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* Could not pass MessageChannelEvent$Chat$Impl */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /**********************************************************************************************************************/ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* Could not pass the event MessageChannelEvent$Chat$Impl to an Event Listener! */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* Since the event can be modified during the event's listener, */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* there could be adverse side effects of the exception occurring */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* such that duplications or other game breaking issues could exist. */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* Due to the nature of the exception, this is not likely an exception */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* that is covered by SpongeForge or Forge itself, and therefore should */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* be reported to the mod/plugin author first prior to reporting to */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* Sponge or Forge. */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* Owning Mod/Plugin: magibridge */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* Exception: */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* java.lang.IllegalArgumentException: */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* ID may not be empty */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* magibridge.net.dv8tion.jda.internal.utils.Checks.notEmpty(Checks.java:72) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* magibridge.net.dv8tion.jda.api.utils.MiscUtil.parseSnowflake(MiscUtil.java:107) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* magibridge.net.dv8tion.jda.api.utils.cache.SnowflakeCacheView.getElementById(SnowflakeCacheView.java:59) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* magibridge.net.dv8tion.jda.api.JDA.getTextChannelById(JDA.java:1387) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* com.magitechserver.magibridge.discord.DiscordMessageBuilder.get(DiscordMessageBuilder.java:97) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* com.magitechserver.magibridge.discord.DiscordMessageBuilder.send(DiscordMessageBuilder.java:174) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* com.magitechserver.magibridge.listeners.VanillaListeners.onSpongeMessage(VanillaListeners.java:158) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* org.spongepowered.common.event.listener.ChatListener_VanillaListeners_onSpongeMessage16.handle(Unknown Source) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:97) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:383) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:347) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* org.spongepowered.mod.event.SpongeModEventManager.extendedPost(SpongeModEventManager.java:450) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraftforge.common.ForgeHooks.onServerChatEvent(ForgeHooks.java:2325) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:946) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* org.spongepowered.common.event.tracking.phase.packet.PacketPhaseUtil.onProcessPacket(PacketPhaseUtil.java:219) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraft.network.PacketThreadUtil$1.redirect$zld000$impl$redirectToPhaseTracker(SourceFile:540) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* java.util.concurrent.FutureTask.run(FutureTask.java:266) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraft.util.Util.func_181617_a(SourceFile:46) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:331) */ 21.08 12:29:25 [Server] Server thread/ [Sponge]: /* net.minecraft.server.MinecraftServer.redirect$zjh000$onRun(MinecraftServer.java:4682) */ 21.08 12:29:26 [Server] Server thread/ [Sponge]: /* net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) */ 21.08 12:29:26 [Server] Server thread/ [Sponge]: /* net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) */ 21.08 12:29:26 [Server] Server thread/ [Sponge]: /* net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) */ 21.08 12:29:26 [Server] Server thread/ [Sponge]: /* net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) */ 21.08 12:29:26 [Server] Server thread/ [Sponge]: /* java.lang.Thread.run(Thread.java:748) */ 21.08 12:29:26 [Server] Server thread/ [Sponge]: /**********************************************************************************************************************/

NicodemusN commented 2 years ago

Hey! I figured it out. I had to disable nucleus chat option. You can delete this ticket :)