mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 18:20:38 +01:00
Add logging for //lua and //luatransform
This commit is contained in:
parent
3240167b13
commit
acc9188828
@ -1126,8 +1126,10 @@ minetest.register_chatcommand("/lua", {
|
|||||||
local err = worldedit.lua(param)
|
local err = worldedit.lua(param)
|
||||||
if err then
|
if err then
|
||||||
worldedit.player_notify(name, "code error: " .. err)
|
worldedit.player_notify(name, "code error: " .. err)
|
||||||
|
minetest.log("action", name.." tried to execute "..param)
|
||||||
else
|
else
|
||||||
worldedit.player_notify(name, "code successfully executed", false)
|
worldedit.player_notify(name, "code successfully executed", false)
|
||||||
|
minetest.log("action", name.." executed "..param)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
@ -1140,8 +1142,10 @@ minetest.register_chatcommand("/luatransform", {
|
|||||||
local err = worldedit.luatransform(worldedit.pos1[name], worldedit.pos2[name], param)
|
local err = worldedit.luatransform(worldedit.pos1[name], worldedit.pos2[name], param)
|
||||||
if err then
|
if err then
|
||||||
worldedit.player_notify(name, "code error: " .. err, false)
|
worldedit.player_notify(name, "code error: " .. err, false)
|
||||||
|
minetest.log("action", name.." tried to execute luatransform "..param)
|
||||||
else
|
else
|
||||||
worldedit.player_notify(name, "code successfully executed", false)
|
worldedit.player_notify(name, "code successfully executed", false)
|
||||||
|
minetest.log("action", name.." executed luatransform "..param)
|
||||||
end
|
end
|
||||||
end),
|
end),
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user