libTicker 1.0.0
Virion for countdowns, cooldowns and repeating timers that pause and resume cleanly.
Download .phar
Description
libTicker
Timers that are easy to stop.
Countdown::start($this, 10)
->onTick(fn(int $left) => $arena->broadcastTip("Starting in $left"))
->onFinish(fn() => $arena->begin());
$cooldowns = new Cooldowns(seconds: 30);
if(!$cooldowns->try($player)){
$player->sendMessage("Wait " . $cooldowns->left($player) . "s");
}
Changelog
- First release
Versions
| Version | API | Released | Downloads | |
|---|---|---|---|---|
| 1.1.0 | 5.0.0 – 5.99.0 | 2026-09-15 | 480 | – |
| 1.0.0 | 5.0.0 – 5.99.0 | 2026-02-12 | 240 | – |
Reviews
No reviews yet.
Reviews are off in the preview.