[Mod] Crash your server [crash]

User avatar
Posts: 57
Joined: Sat Jul 02, 2016 08:33
Location: get_author_pos() ~= get_viewer_pos()
GitHub: krokoschlange
In-game: krokoschlange

[Mod] Crash your server [crash]

by krokoschlange » Sat Jan 21, 2017 10:29

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.

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


User avatar
Posts: 761
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
GitHub: orwell96
IRC: orwell96
In-game: orwell

Re: [Mod] Crash your server [crash]

by orwell » Mon Jan 23, 2017 07:56

Writing a chat command that calls minetest.request_shutdown(true) would also have done it.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

Return to WIP Mods

Who is online

Users browsing this forum: davidthecreator, disconnected and 2 guests