[Mod] Crash your server [crash]

User avatar
krokoschlange
Member
 
Posts: 38
Joined: Sat Jul 02, 2016 08:33
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: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: 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: No registered users and 15 guests

cron