Skip to content

Commit 54ffe92

Browse files
committed
@UseExperimental annotation replaced with @OptIn in ChatCooldown.kt.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 39627b6 commit 54ffe92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/chat/ChatCooldown.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object ChatCooldown {
2323
minSecondsDuration: Int = DEFAULT_COOLDOWN
2424
): Boolean = getCooldownTimeLeft(nickname) >= minSecondsDuration
2525

26-
@UseExperimental(ExperimentalTime::class)
26+
@OptIn(ExperimentalTime::class)
2727
fun getCooldownTimeLeft(nickname: String): Double {
2828
if (cooldownMap[nickname] != null) {
2929
val commandExecutionTime = cooldownMap[nickname]

0 commit comments

Comments
 (0)