From dda49fd9eeb1799e13d74d20cc235e1f49fa5113 Mon Sep 17 00:00:00 2001 From: s20 <129506166+src4026@users.noreply.github.com> Date: Sun, 15 Oct 2023 23:31:16 +0530 Subject: [PATCH] Fix donation limits (#1237) --- mods/ctf/ctf_modebase/ranking_commands.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ctf/ctf_modebase/ranking_commands.lua b/mods/ctf/ctf_modebase/ranking_commands.lua index 2f4cfa7f38..8b95849d89 100644 --- a/mods/ctf/ctf_modebase/ranking_commands.lua +++ b/mods/ctf/ctf_modebase/ranking_commands.lua @@ -125,8 +125,8 @@ minetest.register_chatcommand("donate", { return false, "You should donate at least 5 score!" end - if score > 100 then - return false, "You can donate no more than 100 score!" + if score > 400 then + return false, "You can donate no more than 400 score!" end if pname == name then @@ -151,8 +151,8 @@ minetest.register_chatcommand("donate", { return false, "You can donate only half of your match score!" end - if donate_timer[name] and donate_timer[name] + 600 > os.time() then - return false, "You can donate only once in 10 minutes!" + if donate_timer[name] and donate_timer[name] + 300 > os.time() then + return false, "You can donate only once in 5 minutes!" end current_mode.recent_rankings.add(pname, {score=score}, true)