forked from Mirrorlandia_minetest/minetest
DevTest: Move chat command logging to separate mod
This commit is contained in:
parent
8f1593e4e8
commit
97a80b4816
@ -288,7 +288,3 @@ minetest.register_chatcommand("test_place_nodes", {
|
|||||||
return true, "Emerging area …"
|
return true, "Emerging area …"
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
core.register_on_chatcommand(function(name, command, params)
|
|
||||||
minetest.log("action", "caught command '"..command.."', issued by '"..name.."'. Parameters: '"..params.."'")
|
|
||||||
end)
|
|
||||||
|
3
games/devtest/mods/log/init.lua
Normal file
3
games/devtest/mods/log/init.lua
Normal file
@ -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)
|
2
games/devtest/mods/log/mod.conf
Normal file
2
games/devtest/mods/log/mod.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name = log
|
||||||
|
description = Log DevTest-related actions
|
Loading…
Reference in New Issue
Block a user