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

Method CooldownAPI

src/main/java/com/mohistmc/api/CooldownAPI.java:14–18  ·  view source on GitHub ↗
(String id, String cooldownName, int timeInSeconds)

Source from the content-addressed store, hash-verified

12 private long start;
13
14 public CooldownAPI(String id, String cooldownName, int timeInSeconds) {
15 this.id = id;
16 this.cooldownName = cooldownName;
17 this.timeInSeconds = timeInSeconds;
18 }
19
20 public static boolean isInCooldown(String id, String cooldownName) {
21 if (getTimeLeft(id, cooldownName) >= 1) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected