Name | RateLimit |
Syntax | ratelimit [<object>] [<duration>] |
Short Description | Limits the rate that queues may process a script at. |
Full Description | Limits the rate that queues may process a script at.
If another queue tries to run the same script faster than the duration, that second queue will be stopped. Note that the rate limiting is tracked based on two unique factors: the object input, and the specific script line. That is to say: if you have a 'ratelimit <player> 10s', and then a few lines down a 'ratelimit <player> 10s', those are two separate rate limiters. Additionally, if you have a 'ratelimit <player> 10s' and two different players run it, they each have a separate rate limit applied. Note that this uses game delta tick time, not system realtime. |
Related Tags | None
|
Usage Example |
|
Group | queue |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/RateLimitCommand.java#L24 |