summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worldedit_commands/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua
index a62efb6..325a31c 100644
--- a/worldedit_commands/init.lua
+++ b/worldedit_commands/init.lua
@@ -1126,8 +1126,10 @@ minetest.register_chatcommand("/lua", {
local err = worldedit.lua(param)
if err then
worldedit.player_notify(name, "code error: " .. err)
+ minetest.log("action", name.." tried to execute "..param)
else
worldedit.player_notify(name, "code successfully executed", false)
+ minetest.log("action", name.." executed "..param)
end
end,
})
@@ -1140,8 +1142,10 @@ minetest.register_chatcommand("/luatransform", {
local err = worldedit.luatransform(worldedit.pos1[name], worldedit.pos2[name], param)
if err then
worldedit.player_notify(name, "code error: " .. err, false)
+ minetest.log("action", name.." tried to execute luatransform "..param)
else
worldedit.player_notify(name, "code successfully executed", false)
+ minetest.log("action", name.." executed luatransform "..param)
end
end),
})