Mc2Discord

Mc2Discord

50.4k Downloads

Crash on Server stopped

Darkere opened this issue ยท 4 comments

commented

Crashing on serverStop preventing shutdown:

https://gist.github.com/Darkere/0f9d32dcaaa971d86f739efa0bc113c8

commented

for me its not crashing but its also not stopping

commented

Can you try the jar i give to darkere on my discord (https://discord.gg/WUczf9) ?

commented

@denis3d This happens because you initialize the webhookClient in the ServerChat event. So in other words, if you boot up the server with webhooks enabled and shut it down without sending any messages, it'll give you that exact error. An easy fix would be to initialize the webhookClient (if needed) somewhere in server startup.

commented

Should be fixed in 2.0.0