[Mod] Crash your server [crash]

User avatar
krokoschlange
Member
 
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.

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
 

User avatar
orwell
Member
 
Posts: 718
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
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: Teslov and 1 guest