This commit is contained in:
DS-Minetest 2017-06-08 22:14:55 +02:00
parent d25bfa612e
commit 7f4418b8b1

View File

@ -20,6 +20,14 @@ minetest.register_chatcommand("c", {
end,
})
minetest.register_chatcommand("lua", {
params = "",
description = "Execute something in lua.",
func = function(term)
return pcall(loadstring(term))
end,
})
local time = math.floor(tonumber(os.clock()-load_time_start)*100+0.5)/100
local msg = "["..modname.."] loaded after ca. "..time