Skip to content

Commit a25738d

Browse files
committed
Feature: Initiate CountdownHelper.kt
1 parent c2eb7e8 commit a25738d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.example.exampleplugin.utils
2+
3+
import net.kyori.adventure.sound.Sound
4+
import net.kyori.adventure.text.minimessage.MiniMessage
5+
import org.bukkit.entity.Player
6+
import org.bukkit.plugin.java.JavaPlugin
7+
8+
class CountdownHelper {
9+
private val mm = MiniMessage.miniMessage()
10+
11+
fun start(
12+
plugin: JavaPlugin,
13+
player: Player,
14+
seconds: Int,
15+
message: (remaining: Int) -> String,
16+
sound: Sound,
17+
finishSound: Sound,
18+
onFinish: (Player) -> Unit
19+
) {
20+
// Countdown Logic
21+
}
22+
}

0 commit comments

Comments
 (0)