Skip to content

Commit

Permalink
update: 添加prevent_click_block中对点击空气的处理
Browse files Browse the repository at this point in the history
  • Loading branch information
4o4E committed Jan 18, 2024
1 parent 2ebe36e commit ebaa336
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 146 deletions.
20 changes: 11 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.7.0"
kotlin("plugin.serialization") version "1.7.0"
kotlin("jvm") version "1.9.20"
kotlin("plugin.serialization") version "1.9.20"
id("com.github.johnrengelman.shadow") version "7.1.2"
}

group = "top.e404"
version = "2.0.10"
val ePluginVersion = "1.0.4"
version = "2.11.0"
val ePluginVersion = "1.2.0"
fun eplugin(module: String, version: String = ePluginVersion) = "top.e404:eplugin-${module}:${version}"

repositories {
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
mavenLocal()
mavenCentral()
mavenLocal()
}

dependencies {
Expand All @@ -29,21 +29,23 @@ dependencies {
}

tasks {
withType<KotlinCompile>() {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

processResources {
filteringCharset = Charsets.UTF_8.name()
filesMatching("plugin.yml") {
expand(project.properties)
}
}

shadowJar {
archiveFileName.set("${project.name}-${project.version}.jar")
exclude("META-INF/*")
relocate("org.bstats", "top.e404.boom.bstats")
relocate("kotlin", "kotlin1_7_0")
exclude("META-INF/**")
relocate("org.bstats", "top.e404.boom.relocate.bstats")
relocate("kotlin", "top.e404.boom.relocate.kotlin")
relocate("top.eplugin", "top.e404.boom.relocate.eplugin")

doFirst {
for (file in File("jar").listFiles() ?: arrayOf()) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ data class ClickBlockConfig(
@Serializable(RegexSerialization::class)
val item: Regex,
@Serializable(RegexSerialization::class)
val block: Regex,
val block: Regex? = null,
@Serializable(ClickTypeSerializer::class)
val type: ClickType
)
Expand Down
Loading

0 comments on commit ebaa336

Please sign in to comment.