aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/log/init.lua
diff options
context:
space:
mode:
authorWuzzy <Wuzzy@disroot.org>2022-10-08 17:34:55 +0200
committersfan5 <sfan5@live.de>2022-10-23 21:58:56 +0200
commit97a80b4816ea60cc295a1d801aa6129c1e1393d8 (patch)
treee440e1f748cd567ec632be079ae2b95cf90c392a /games/devtest/mods/log/init.lua
parent8f1593e4e8bef498b7021e330e3558545c9543ee (diff)
downloadminetest-97a80b4816ea60cc295a1d801aa6129c1e1393d8.tar.xz
DevTest: Move chat command logging to separate mod
Diffstat (limited to 'games/devtest/mods/log/init.lua')
-rw-r--r--games/devtest/mods/log/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/games/devtest/mods/log/init.lua b/games/devtest/mods/log/init.lua
new file mode 100644
index 000000000..4102bca36
--- /dev/null
+++ b/games/devtest/mods/log/init.lua
@@ -0,0 +1,3 @@
+minetest.register_on_chatcommand(function(name, command, params)
+ minetest.log("action", "[devtest] Caught command '"..command.."', issued by '"..name.."'. Parameters: '"..params.."'")
+end)