From 97a80b4816ea60cc295a1d801aa6129c1e1393d8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 8 Oct 2022 17:34:55 +0200 Subject: DevTest: Move chat command logging to separate mod --- games/devtest/mods/log/init.lua | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 games/devtest/mods/log/init.lua (limited to 'games/devtest/mods/log/init.lua') 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) -- cgit v1.2.3