From 843077ff601f4a664d990e9c3b2d86252726e62c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 28 Nov 2015 02:16:35 +0000 Subject: [PATCH] Better logging --- mods/ctf_match/buildtime.lua | 3 +++ mods/ctf_match/matches.lua | 3 +++ mods/ctf_pvp_engine | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/ctf_match/buildtime.lua b/mods/ctf_match/buildtime.lua index 954c1c3..1ab0fde 100644 --- a/mods/ctf_match/buildtime.lua +++ b/mods/ctf_match/buildtime.lua @@ -62,6 +62,9 @@ ctf_match.register_on_build_time_start(function() end) ctf_match.register_on_build_time_end(function() + if minetest.global_exists("chatplus") then + chatplus.log("Build time over!") + end minetest.chat_send_all("Build time over! Attack and defend!") minetest.setting_set("enable_pvp", "true") for _, player in pairs(minetest.get_connected_players()) do diff --git a/mods/ctf_match/matches.lua b/mods/ctf_match/matches.lua index e158025..1ae6230 100644 --- a/mods/ctf_match/matches.lua +++ b/mods/ctf_match/matches.lua @@ -104,6 +104,9 @@ ctf.register_on_new_game(function() end minetest.chat_send_all("Next round!") + if minetest.global_exists("chatplus") then + chatplus.log("Next round!") + end end) ctf_flag.register_on_capture(function(attname, flag) diff --git a/mods/ctf_pvp_engine b/mods/ctf_pvp_engine index e0b9b47..dff4eee 160000 --- a/mods/ctf_pvp_engine +++ b/mods/ctf_pvp_engine @@ -1 +1 @@ -Subproject commit e0b9b476ee2fd577e62afaab9b410f009516687b +Subproject commit dff4eee6c7d672e3f818b115d4bcd764c8c62881