Crash on Server stopped
Darkere opened this issue ยท 4 comments
Crashing on serverStop preventing shutdown:
https://gist.github.com/Darkere/0f9d32dcaaa971d86f739efa0bc113c8
Can you try the jar i give to darkere on my discord (https://discord.gg/WUczf9) ?
@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.