Skip to content

Commit

Permalink
Fix donation limits (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
src4026 authored Oct 15, 2023
1 parent c878c1e commit dda49fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mods/ctf/ctf_modebase/ranking_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit dda49fd

Please sign in to comment.