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

Server Events #1

Open
Andarius68 opened this issue Mar 16, 2024 · 2 comments
Open

Server Events #1

Andarius68 opened this issue Mar 16, 2024 · 2 comments

Comments

@Andarius68
Copy link

Could this also be used to send messages on server events. For example when the server shuts down/crashes and when it comes back online?

@insanity54
Copy link
Owner

insanity54 commented Mar 16, 2024

Good question. Right now, this mod can't do that, but I think the mod could be extended to add some of those features.

Graceful server shutdowns are a maybe. I'd have to look in the minetest code to see if there is a hook that triggers when the server is shutting down.

Crashes are probably a no. Since the mod runs on the server, if the server has unexpectedly crashed, there's no server to run the mod so it's not really possible.

When the server starts, that's definitely a yes.

If it's robust crash detection you're looking for, Prometheus monitoring might be a better choice. https://wiki.minetest.net/Server_Metrics_using_Prometheus

@Andarius68
Copy link
Author

Excellent! I think those would be very worthwhile additions. 🙂

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

2 participants