We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UseExperimental
OptIn
CooldownConfig
CooldownAPI.getCooldownTimeLeft
1 parent 3562465 commit 624f3c9Copy full SHA for 624f3c9
src/main/kotlin/com/mairwunnx/projectessentials/cooldown/CooldownAPI.kt
@@ -21,6 +21,7 @@ object CooldownAPI {
21
* @since 1.14.4-1.0.0.0
22
*/
23
const val DEFAULT_COOLDOWN = 5
24
+
25
/**
26
* Default cooldown literals.
27
* It literals what replaced cooldowns for
@@ -88,7 +89,7 @@ object CooldownAPI {
88
89
* @return left cooldown time in seconds for command.
90
91
- @UseExperimental(ExperimentalTime::class)
92
+ @OptIn(ExperimentalTime::class)
93
fun getCooldownTimeLeft(nickname: String, command: String): Double {
94
if (cooldownTable.get(nickname, command) != null) {
95
val commandExecutionTime = cooldownTable.get(nickname, command)
0 commit comments