DenisD3D / Mc2Discord

Link your Minecraft server chat with your Discord (100k downloads)
https://modrinth.com/mod/mc2discord
Apache License 2.0
45 stars 12 forks source link

[1.14.4] Feature request- Crash detection and announcement in discord. #11

Closed ProsperCraft closed 5 years ago

ProsperCraft commented 5 years ago

Would be great if when the server crashes it would announce it in discord.

4rz0 commented 5 years ago

If the server crashes, mods can't do things anymore, so this is not possible.

ProsperCraft commented 5 years ago

Instead of printing server closed in discord, print - Server crash detected

DenisD3D commented 5 years ago

Server crash is a bit hard to detect while the mod will no longer respond after the crash. I have no idea how to do that without killing server performance.

Darkere commented 5 years ago

Looks like discordintegration does this by checking both ServerStopping and ServerStopped events

https://github.com/Chikachi/DiscordIntegrationCore/blob/2ecff7707c733df9cf5f54c9f259cabbc0db5b72/src/main/java/chikachi/discord/core/Proxy.java#L74

ProsperCraft commented 5 years ago

Thank you, that is the one we use in 1.12.2