diff options
author | Wuzzy <Wuzzy@disroot.org> | 2022-10-08 17:34:55 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-10-23 21:58:56 +0200 |
commit | 97a80b4816ea60cc295a1d801aa6129c1e1393d8 (patch) | |
tree | e440e1f748cd567ec632be079ae2b95cf90c392a | |
parent | 8f1593e4e8bef498b7021e330e3558545c9543ee (diff) | |
download | minetest-97a80b4816ea60cc295a1d801aa6129c1e1393d8.tar.xz |
DevTest: Move chat command logging to separate mod
-rw-r--r-- | games/devtest/mods/experimental/commands.lua | 4 | ||||
-rw-r--r-- | games/devtest/mods/log/init.lua | 3 | ||||
-rw-r--r-- | games/devtest/mods/log/mod.conf | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/games/devtest/mods/experimental/commands.lua b/games/devtest/mods/experimental/commands.lua index 4cec2e687..fc09be954 100644 --- a/games/devtest/mods/experimental/commands.lua +++ b/games/devtest/mods/experimental/commands.lua @@ -288,7 +288,3 @@ minetest.register_chatcommand("test_place_nodes", { return true, "Emerging area …" end, }) - -core.register_on_chatcommand(function(name, command, params) - minetest.log("action", "caught command '"..command.."', issued by '"..name.."'. Parameters: '"..params.."'") -end) 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) diff --git a/games/devtest/mods/log/mod.conf b/games/devtest/mods/log/mod.conf new file mode 100644 index 000000000..d2f37b979 --- /dev/null +++ b/games/devtest/mods/log/mod.conf @@ -0,0 +1,2 @@ +name = log +description = Log DevTest-related actions |