Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not pass the event MessageChannelEvent$Chat$Impl to an Event Listener! #219

Open
poqdavid opened this issue Apr 8, 2021 · 2 comments

Comments

@poqdavid
Copy link
Contributor

poqdavid commented Apr 8, 2021

Just updated magibridge and this started happening
also the config is the new config which I updated

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

spongeforge 2838-7.3.0
Nucleus 2.3.2-SpongeAPI7.3

@poqdavid
Copy link
Contributor Author

poqdavid commented Apr 8, 2021

The bridge is pretty much one way from discord to server but it doesn't work from server to discord

@poqdavid
Copy link
Contributor Author

As Professor Oaknology#3238 said in discord this happens when webhook is enabled
https://gist.github.com/poqdavid/d5d9eb412e38e4d1255c67b9b86c0f93 (Here is the error even though it's the same just for the record)

Forge 2860
spongeforge-1.12.2-2838-7.4.2
MagiBridge-API7-2.12
Nucleus-2.4.0-MC1.12.2-SpongeAPI7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant