Skip to content

Commit 89bb171

Browse files
committed
feat: add jooq, scheduler ext
1 parent 45dffbb commit 89bb171

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
plugins {
2-
id 'org.jetbrains.kotlin.jvm' version '1.9.21'
2+
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
33
id 'kr.entree.spigradle' version '2.4.3'
44
id 'com.github.johnrengelman.shadow' version '8.1.1'
55
id 'maven-publish'
66
}
77

8-
group = 'io.typecraft'
9-
version = '2.2.0'
8+
group = 'io.typst'
9+
version = '2.3.0'
1010

1111
repositories {
1212
mavenLocal()
@@ -18,12 +18,13 @@ dependencies {
1818
api 'io.typecraft:command-kotlin:1.1.1'
1919
api 'io.typecraft:bukkit-object:0.4.1'
2020
api 'io.typecraft:bukkit-view-core:6.0.2'
21-
api 'io.typecraft:bukkit-kotlin-serialization:0.4.0'
21+
api 'io.typst:bukkit-kotlin-serialization:1.1.0'
2222
api 'io.typecraft:bukkit-inventory-kotlin:1.0.0'
2323
api 'io.arrow-kt:arrow-core:1.2.1'
2424
api 'io.arrow-kt:arrow-fx-coroutines:1.2.1'
25-
api 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2'
25+
api 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3'
2626
api 'com.charleskorn.kaml:kaml:0.57.0'
27+
api 'org.jooq:jooq:3.14.16'
2728
testImplementation 'org.jetbrains.kotlin:kotlin-test'
2829
}
2930

src/main/kotlin/io/typecraft/bukkit/kotlin/plugin/BukkitKotlinPlugin.kt renamed to src/main/kotlin/io/typst/bukkit/kotlin/plugin/BukkitKotlinPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.typecraft.bukkit.kotlin.plugin
1+
package io.typst.bukkit.kotlin.plugin
22

33
import org.bukkit.plugin.java.JavaPlugin
44

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package io.typst.bukkit.kotlin.plugin
2+
3+
import org.bukkit.plugin.java.JavaPlugin
4+
import org.bukkit.scheduler.BukkitRunnable
5+
6+
fun JavaPlugin.runTaskAsync(runnable: () -> Unit) {
7+
object : BukkitRunnable() {
8+
override fun run() = runnable.invoke()
9+
}.runTaskAsynchronously(this)
10+
}
11+
12+
fun JavaPlugin.runTask(runnable: () -> Unit) {
13+
object : BukkitRunnable() {
14+
override fun run() = runnable.invoke()
15+
}.runTask(this)
16+
}

0 commit comments

Comments
 (0)