Mostly for information purpose so u could track group id2 and id3 what commands they were executing at which time and what kind of commandsFor what, exactly?
can you give a small example please?oh log their use?
tfs has lua function called logCommand(player, words, param) you can add this to all the talk actions.
then it logs any time the command is used
local logFormat = "[%s] %s %s\n"
function logCommand(player, words, param)
local file = io.open("data/logs/" .. player:getName() .. " commands.log", "a")
if not file then
return
end
file:write(logFormat:format(os.date("%d/%m/%Y %H:%M"), words, param:trim()))
file:close()
end
Just add that line to all your talk actions after the permissions checks like the post above.can you give a small example please?
and where does the log go?
I tried here without success