Skip to content

Commit 624f3c9

Browse files
committed
UseExperimental annotation replaced with OptIn in CooldownConfig CooldownAPI.getCooldownTimeLeft.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 3562465 commit 624f3c9

File tree

1 file changed

+2
-1
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/cooldown

1 file changed

+2
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/cooldown/CooldownAPI.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ object CooldownAPI {
2121
* @since 1.14.4-1.0.0.0
2222
*/
2323
const val DEFAULT_COOLDOWN = 5
24+
2425
/**
2526
* Default cooldown literals.
2627
* It literals what replaced cooldowns for
@@ -88,7 +89,7 @@ object CooldownAPI {
8889
* @return left cooldown time in seconds for command.
8990
* @since 1.14.4-1.0.0.0
9091
*/
91-
@UseExperimental(ExperimentalTime::class)
92+
@OptIn(ExperimentalTime::class)
9293
fun getCooldownTimeLeft(nickname: String, command: String): Double {
9394
if (cooldownTable.get(nickname, command) != null) {
9495
val commandExecutionTime = cooldownTable.get(nickname, command)

0 commit comments

Comments
 (0)