local logFormat = "[%s] %s %s"function logCommand(player, words, param) local file = io.open("data/logs/" .. player:getName() .. " commands.log", "a") if not file then return end io.output(file) io.write(logFormat:format(os.date("%d/%m/%Y %H:%M"), words, param):trim() .. "\n") io.close(file)end