minetest.register_on_shutdown

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

Description

Called before server shutdown.

WARNING: If the server terminates abnormally (i.e. crashes), the registered callbacks WILL LIKELY NOT BE RUN. Data should be saved at semi-frequent intervals as well as on server shutdown.

Example

minetest.register_on_shutdown(function()
    minetest.chat_send_all("Server shutting down")
end)
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox