Skip to content

Commit b2a485e

Browse files
committed
[2.2.0-beta2] 1.21.1
1 parent 1d6f577 commit b2a485e

File tree

5 files changed

+15
-137
lines changed

5 files changed

+15
-137
lines changed

build.gradle.kts

+12-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ subprojects {
2121
"bukkit-hook",
2222
"bukkit-util",
2323
"bukkit-ui",
24-
"bukkit-xseries"
24+
"bukkit-ui-legacy",
25+
"bukkit-ui-modern",
26+
"bukkit-xseries",
27+
"bukkit-xseries-item"
2528
)
2629
install("database-sql")
2730
install(
@@ -33,7 +36,12 @@ subprojects {
3336
)
3437
install(
3538
"nms",
36-
"nms-util"
39+
"nms-util",
40+
"nms-util-stable",
41+
"nms-util-unstable",
42+
"nms-util-tag",
43+
"nms-util-tag-12005",
44+
"nms-util-tag-legacy",
3745
)
3846
install(
3947
"database-alkaid-redis",
@@ -42,13 +50,11 @@ subprojects {
4250
)
4351
install(BUKKIT, BUNGEE, VELOCITY)
4452
install("platform-bukkit-impl")
45-
// install(UNIVERSAL, DATABASE, KETHER, METRICS, NMS_UTIL)
46-
// install(EXPANSION_REDIS, EXPANSION_JAVASCRIPT, EXPANSION_PLAYER_DATABASE)
47-
// install(BUKKIT_ALL, BUNGEE, VELOCITY)
53+
forceDownloadInDev = false
4854
repoTabooLib = "http://mcitd.cn:8081/repository/releases"
4955
}
5056
version {
51-
taboolib = "6.2.0-beta4-dev"
57+
taboolib = "6.2.0-beta5-dev"
5258
coroutines = null
5359
// isSkipKotlin = true
5460
// isSkipKotlinRelocate = true

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.2.0-beta1
2+
version=2.2.0-beta2
33
kotlin.incremental=true
44
kotlin.incremental.java=true
55
kotlin.incremental.useClasspathSnapshot=true

project/runtime-bukkit/src/main/kotlin/me/arasple/mc/trchat/module/display/function/Function.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package me.arasple.mc.trchat.module.display.function
33
import me.arasple.mc.trchat.api.event.TrChatReloadEvent
44
import me.arasple.mc.trchat.module.internal.script.Reaction
55
import org.bukkit.entity.Player
6-
import taboolib.common.io.getInstance
76
import taboolib.common.io.runningClassesWithoutLibrary
87
import taboolib.common.platform.ProxyCommandSender
98
import taboolib.common.platform.ProxyPlayer
@@ -39,8 +38,8 @@ abstract class Function(val id: String) {
3938
fun reload(customFunctions: List<CustomFunction>) {
4039
functions.clear()
4140
functions.addAll(runningClassesWithoutLibrary
42-
.filter { it.isAnnotationPresent(StandardFunction::class.java) }
43-
.mapNotNull { it.getInstance()?.get() as? Function }
41+
.filter { it.hasAnnotation(StandardFunction::class.java) }
42+
.mapNotNull { it.getInstance() as? Function }
4443
)
4544
functions.addAll(customFunctions)
4645
TrChatReloadEvent.Function(functions).call()

project/runtime-bukkit/src/main/kotlin/me/arasple/mc/trchat/module/display/function/standard/ImageShow.kt

-107
This file was deleted.

project/runtime-bukkit/src/main/kotlin/me/arasple/mc/trchat/module/internal/command/main/CommandViews.kt

-20
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package me.arasple.mc.trchat.module.internal.command.main
22

33
import me.arasple.mc.trchat.module.conf.file.Settings
44
import me.arasple.mc.trchat.module.display.function.standard.EnderChestShow
5-
import me.arasple.mc.trchat.module.display.function.standard.ImageShow
65
import me.arasple.mc.trchat.module.display.function.standard.InventoryShow
76
import me.arasple.mc.trchat.module.display.function.standard.ItemShow
87
import org.bukkit.entity.Player
@@ -12,7 +11,6 @@ import taboolib.common.platform.Platform
1211
import taboolib.common.platform.PlatformSide
1312
import taboolib.common.platform.command.PermissionDefault
1413
import taboolib.common.platform.command.command
15-
import taboolib.common5.util.decodeBase64
1614
import taboolib.expansion.createHelper
1715
import taboolib.module.lang.sendLang
1816
import taboolib.platform.util.sendLang
@@ -78,23 +76,5 @@ object CommandViews {
7876
createHelper()
7977
}
8078
}
81-
command("view-image", permissionDefault = PermissionDefault.TRUE) {
82-
dynamic("image") {
83-
execute<Player> { sender, _, argument ->
84-
val url = argument.decodeBase64().decodeToString()
85-
ImageShow.cache.getIfPresent(url)?.sendTo(sender)
86-
?: kotlin.run {
87-
ImageShow.computeAndCache(url)
88-
sender.sendLang("Function-Image-Show-Unavailable")
89-
}
90-
}
91-
}
92-
incorrectSender { sender, _ ->
93-
sender.sendLang("Command-Not-Player")
94-
}
95-
incorrectCommand { _, _, _, _ ->
96-
createHelper()
97-
}
98-
}
9979
}
10080
}

0 commit comments

Comments
 (0)