Skip to content

Commit bad0168

Browse files
Merge pull request #118 from YsGqHY/stable/v3
3.3.5e
2 parents bfe6246 + fd68b6f commit bad0168

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ subprojects {
6060
}
6161
version {
6262
// taboolib = "6.2.0-beta18"
63-
taboolib = "6.2.0-beta33"
63+
taboolib = "6.2.0-beta36"
6464
coroutines = null
6565
}
6666
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
group=me.arasple.mc.trmenu
2-
version=3.3.5c
2+
version=3.3.5e

plugin/src/main/kotlin/trplugins/menu/module/internal/hook/impl/HookGraalJS.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package trplugins.menu.module.internal.hook.impl
22

33
import taboolib.module.nms.MinecraftVersion
4+
import trplugins.menu.TrMenu
45
import trplugins.menu.module.internal.hook.HookAbstract
56

67

@@ -12,6 +13,7 @@ class HookGraalJS : HookAbstract() {
1213

1314
override val isHooked by lazy {
1415
if (!MinecraftVersion.isUniversal) return@lazy false
16+
if (!TrMenu.SETTINGS.getBoolean("Scripts.Enable-GraalJS", false)) return@lazy false
1517
plugin != null && plugin!!.isEnabled
1618
}
1719

plugin/src/main/resources/settings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,6 @@ RegisterCommands:
9696
Scripts:
9797
Export-Hook-Plugin: true
9898
Mozilla-Compat: true
99+
# 是否启用 GraalJS 作为引擎
100+
Enable-GraalJS: false
99101
Binding-Map:

0 commit comments

Comments
 (0)