Better logging

master
rubenwardy 2015-11-28 02:16:14 +00:00
parent e0b9b476ee
commit dff4eee6c7
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ minetest.register_chatcommand("t", {
local team = ctf.team(tname)
if team then
minetest.log("action", tname .. "<" .. name .. "> ** ".. param .. " **")
if minetest.global_exists("chatplus") then
chatplus.log(tname .. "<" .. name .. "> ** ".. param .. " **")
end
for username, to in pairs(team.players) do
minetest.chat_send_player(username,
tname .. "<" .. name .. "> ** " .. param .. " **")