timers.lua: export cooldown

This commit is contained in:
NullBite 2023-06-25 23:15:19 -04:00
parent 8a1d772bb4
commit 72f20234f0
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -70,6 +70,7 @@ do
end
events.TICK:register(function() if player then tick() end end, "cooldown")
end
timers.cooldown=cooldown
function rateLimit(ticks, next, name)
if timers.cooldown(ticks+1, name) then