File tree Expand file tree Collapse file tree 4 files changed +24
-7
lines changed
src/main/kotlin/io/typst/bukkit/kotlin/plugin Expand file tree Collapse file tree 4 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 11plugins {
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
1111repositories {
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
Original file line number Diff line number Diff line change 1- package io.typecraft .bukkit.kotlin.plugin
1+ package io.typst .bukkit.kotlin.plugin
22
33import org.bukkit.plugin.java.JavaPlugin
44
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments