From 534ea96a2de09ff2bb582c73c1a5f37639958563 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 12 Oct 2017 17:19:08 +0100 Subject: [PATCH] Add ctf_start command to skip build time --- mods/ctf_match/chat.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mods/ctf_match/chat.lua b/mods/ctf_match/chat.lua index de9f8ea..b90c1c8 100644 --- a/mods/ctf_match/chat.lua +++ b/mods/ctf_match/chat.lua @@ -12,6 +12,17 @@ minetest.register_chatcommand("ctf_next", { end }) +minetest.register_chatcommand("ctf_start", { + description = "End build time", + privs = { + ctf_match = true + }, + func = function(name, param) + ctf_match.build_timer = 0.01 + end +}) + + minetest.register_chatcommand("ctf_respawn", { description = "Respawn a player (clean inv, send to base)", privs = {