Files

17 lines
450 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# gojo_skills.js — onCooldown() (satır 147)
[← gojo_skills.js](index.md) · [← Master](../../wiki.md)
```javascript
function onCooldown(p, key) {
var until = p.getStates().getNumber("gojo_cd_" + key);
var diff = until - nowMs();
if (diff > 0) {
var s = (diff / 1000).toFixed(1);
p.send("§7[Gojo] §c" + key + " §7cooldown §8(" + s + "s)");
return true;
}
return false;
}
```