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.
1 parent c2eb7e8 commit a25738dCopy full SHA for a25738d
1 file changed
src/main/kotlin/com/example/exampleplugin/utils/CountdownHelper.kt
@@ -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