Page 1 of 1

[Mod] Crash your server [crash]

PostPosted: Sat Jan 21, 2017 10:29
by krokoschlange
Idk why this happened...

This adds a /crash command to crash a server an show all clients the crash message. You need the crash privilege.

Story:
Some day I was programming my submarine mod. I was testing with two clients on my computer, in multiplayer. Every time I made a change I had to restart the server and therefore give my passwords in both clients. I had forgotten to make empty passwords. I also changed the settings to show a reconnect button in the client when the server crashes. But when I shut down the server this doesn't appear. So I decided to write this small mod to crash my server instead of shutting it down xD.

license: wtfpl

Download

Re: [Mod] Crash your server [crash]

PostPosted: Mon Jan 23, 2017 07:56
by orwell
Writing a chat command that calls minetest.request_shutdown(true) would also have done it.