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
ChatCooldown.kt
1 parent 39627b6 commit 54ffe92Copy full SHA for 54ffe92
1 file changed
src/main/kotlin/com/mairwunnx/projectessentials/chat/ChatCooldown.kt
@@ -23,7 +23,7 @@ object ChatCooldown {
23
minSecondsDuration: Int = DEFAULT_COOLDOWN
24
): Boolean = getCooldownTimeLeft(nickname) >= minSecondsDuration
25
26
- @UseExperimental(ExperimentalTime::class)
+ @OptIn(ExperimentalTime::class)
27
fun getCooldownTimeLeft(nickname: String): Double {
28
if (cooldownMap[nickname] != null) {
29
val commandExecutionTime = cooldownMap[nickname]
0 commit comments