Why is there not a function on server startup?

Post Reply
LC Creations
Member
Posts: 77
Joined: Mon Feb 18, 2019 02:53

Why is there not a function on server startup?

by LC Creations » Post

So, I need to make a function happen when the server is done loading and to my surprise there is only a function on shutdown. Why isnt there a function like minetest.register_after_server_loaded() or something like that.

User avatar
Krock
Developer
Posts: 4499
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Why is there not a function on server startup?

by Krock » Post

minetest.register_on_mods_loaded
alternatively
minetest.after(0, function() ...... end)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests