You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: init.lua
+6-3
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,10 @@ minetest.after(0, function()
39
39
ifessentials.check_for_updatesthen
40
40
minetest.log("action", "[Essentials] Checking for updates...")
41
41
ifnotminetest.request_insecure_environment() then
42
+
ifnothttpthen
43
+
minetest.log("error","[essentials] update check error, server http api cannot be access, unfortuantelly you are forced to added the mod to trusted ones, check README")
44
+
return
45
+
end
42
46
minetest.log("action", "[Essentials] Getting an Github version...")
core.chat_send_all("[Essentials] Your server using old version of mod! ("..core.colorize("red", version)..") Old version can have a bugs! Download v"..core.colorize("lime", result.data:gsub("[\n\\]", "")).." on ContentDB.")
62
+
minetest.log("error", "[Essentials] Versions doesnt match! something wrong seems YOU ARE USING OLDER VERSION!")
60
63
else
61
64
local_type
62
65
ifcore.is_singleplayer() then
@@ -68,7 +71,7 @@ minetest.after(0, function()
68
71
end
69
72
end)
70
73
else
71
-
core.chat_send_all("[Essentials] Please, add mod \'essentials\'to \"secure.trusted_mods\" for checking an updates!")
74
+
minetest.log("error","[essentials] update check error, server http api cannot be access, unfortuantelly you are forced to added the mod to trusted ones, check README")
0 commit comments