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