(String id, String cooldownName, int timeInSeconds)
| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected