MCPcopy Create free account
hub / github.com/Teneted/Tenet / isInCooldown

Method isInCooldown

src/main/java/com/mohistmc/api/CooldownAPI.java:20–26  ·  view source on GitHub ↗
(String id, String cooldownName)

Source from the content-addressed store, hash-verified

18 }
19
20 public static boolean isInCooldown(String id, String cooldownName) {
21 if (getTimeLeft(id, cooldownName) >= 1) {
22 return true;
23 }
24 stop(id, cooldownName);
25 return false;
26 }
27
28 private static void stop(String id, String cooldownName) {
29 CooldownAPI.cooldowns.remove(id + cooldownName);

Callers

nothing calls this directly

Calls 2

getTimeLeftMethod · 0.95
stopMethod · 0.95

Tested by

no test coverage detected