Skip to content

Commit 31e78cb

Browse files
committed
[2.0.16] Fix Folia & Gradients
1 parent 0284bb8 commit 31e78cb

File tree

18 files changed

+585
-480
lines changed

18 files changed

+585
-480
lines changed

.github/FUNDING.yml

-2
This file was deleted.

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ subprojects {
1919
install(BUKKIT_ALL, BUNGEE, VELOCITY)
2020
}
2121
version {
22-
taboolib = "6.1.1-beta7"
22+
taboolib = "6.1.1-beta10"
2323
coroutines = null
2424
}
2525
}
@@ -41,7 +41,7 @@ subprojects {
4141
compileOnly(kotlin("stdlib"))
4242
compileOnly("com.google.code.gson:gson:2.8.5")
4343
compileOnly("com.google.guava:guava:21.0")
44-
compileOnly("net.kyori:adventure-api:4.15.0")
44+
compileOnly("net.kyori:adventure-api:4.16.0")
4545
}
4646

4747
// 编译配置

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=me.arasple.mc.trchat
2-
version=2.0.15
2+
version=2.0.16
33
kotlin.incremental=true
44
kotlin.incremental.java=true
55
koltin.incremental.useClasspathSnapshot=true

project/module-adventure/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ dependencies {
22
compileOnly(project(":project:common"))
33
compileOnly(project(":project:module-nms"))
44
compileOnly("net.kyori:adventure-platform-bukkit:4.3.2")
5+
compileOnly(fileTree(rootDir.resolve("libs")))
56
}
67

78
taboolib { subproject = true }

project/module-adventure/src/main/kotlin/me/arasple/mc/trchat/module/adventure/Adventure.kt

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import me.arasple.mc.trchat.api.nms.NMS
44
import net.kyori.adventure.text.Component
55
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
66
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
7+
import org.bukkit.inventory.ItemStack
78
import taboolib.library.reflex.Reflex.Companion.invokeMethod
89
import taboolib.module.chat.ComponentText
910
import taboolib.module.chat.Components
@@ -29,6 +30,10 @@ fun Component.toNative() = Components.parseRaw(gson(this))
2930

3031
fun ComponentText.toAdventure() = gson(toRawMessage())
3132

33+
fun ComponentText.hoverItemAdventure(item: ItemStack): ComponentText {
34+
return toAdventure().hoverEvent(item).toNative()
35+
}
36+
3237
fun Packet.getComponent(): ComponentText? {
3338
return when (name) {
3439
"ClientboundSystemChatPacket" -> {

project/module-compat/build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
repositories {
22
maven("https://nexus.scarsz.me/content/groups/public/")
3+
maven("https://repo.oraxen.com/releases")
34
}
45

56
dependencies {
@@ -10,6 +11,7 @@ dependencies {
1011
compileOnly("com.willfp:eco:6.35.1") { isTransitive = false }
1112
compileOnly("com.github.LoneDev6:api-itemsadder:3.6.2-beta-r3-b") { isTransitive = false }
1213
compileOnly("xyz.xenondevs.nova:nova-api:0.12.13") { isTransitive = false }
14+
compileOnly("io.th0rgal:oraxen:1.170.0") { isTransitive = false }
1315
}
1416

1517
taboolib { subproject = true }

project/runtime-bukkit/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
compileOnly(project(":project:module-nms"))
1010
compileOnly("ink.ptms.core:v12004:12004:universal")
1111
compileOnly("net.md-5:bungeecord-api:1.20-R0.1-SNAPSHOT")
12-
compileOnly(fileTree("libs"))
12+
compileOnly(fileTree(rootDir.resolve("libs")))
1313

1414
compileOnly("me.clip:placeholderapi:2.11.5") { isTransitive = false }
1515
compileOnly("com.discordsrv:discordsrv:1.26.0") { isTransitive = false }

0 commit comments

Comments
 (0)