-- System by Karpio local log = true function onLostConnection() if(log) then local file = io.open(getDataDir().."logs/server/connections.log", "a+") file:write("["..os.date("%c").."] Server (ID: "..getConfigValue("worldId")..") lost connection with database\n") file:close() end os.exit() return true end