diff options
author | shivajiva101 <shivajiva101@hotmail.com> | 2017-05-21 16:31:59 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-05-21 17:31:59 +0200 |
commit | acc91888280c8f6fb3631ae10634edd0df403e73 (patch) | |
tree | 83ccc4ac4bd464e9866ef9eb125dee7e70e96f8e | |
parent | 3240167b13cce44fd007c9a088bf9445a6b26ed4 (diff) |
Add logging for //lua and //luatransform
-rw-r--r-- | worldedit_commands/init.lua | 4 |
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),
})
|