Add Lunar Client support and make various kit/listener/ui adjustments. - Add Apollo (Lunar Client) compileOnly dependencies and new LunarClientManager wired into plugin initialization. Update plugin.yml (depend Apollo-Bukkit, add speedhg.admin.staff permission) and config.yml (lunarclient name/variantName) for rich presence and mod settings. - Rework Tesla kit passive: remove periodic aura task in favor of chance-on-hit effect (AURA_CHANCE) to reduce continuous scheduling and simplify behavior; adjust constants and particle/sound logic accordingly. - Add Anchor golem death handler to KitEventDispatcher to suppress drops/exp for golems spawned by AnchorKit. - Update AnvilSearchMenu to clear item-on-cursor before closing and ensure search tracker is unregistered in the right order. - Remove join/quit attack-speed cooldown handling in GameStateListener and tidy up some permission/command descriptions in plugin.yml. These changes enable Lunar features, improve performance by removing repeated scheduled tasks, and fix gameplay/drop/UI edge cases.
67 lines
1.7 KiB
Kotlin
67 lines
1.7 KiB
Kotlin
plugins {
|
|
id("java")
|
|
id("maven-publish")
|
|
id("com.gradleup.shadow") version "8.3.5"
|
|
kotlin("jvm") version "2.2.0"
|
|
kotlin("kapt") version "2.2.0"
|
|
kotlin("plugin.serialization") version "2.2.0"
|
|
}
|
|
|
|
group = "club.mcscrims"
|
|
version = "1.0.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
maven("https://libraries.minecraft.net/")
|
|
maven("https://repo.codemc.io/repository/maven-public/")
|
|
maven("https://repo.lunarclient.dev")
|
|
maven("https://maven.enginehub.org/repo/")
|
|
}
|
|
|
|
dependencies {
|
|
implementation("fr.mrmicky:fastboard:2.1.3")
|
|
|
|
implementation("com.zaxxer:HikariCP:5.1.0")
|
|
implementation("com.mysql:mysql-connector-j:8.4.0")
|
|
|
|
implementation(libs.kotlinxCoroutines)
|
|
implementation(libs.kotlinxSerialization)
|
|
|
|
compileOnly("com.lunarclient:apollo-api:1.2.4")
|
|
compileOnly("com.lunarclient:apollo-extra-adventure4:1.2.4")
|
|
|
|
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
|
|
compileOnly("com.sk89q.worldedit:worldedit-core:7.2.17-SNAPSHOT")
|
|
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.2.17-SNAPSHOT")
|
|
}
|
|
|
|
tasks {
|
|
compileKotlin {
|
|
compilerOptions.freeCompilerArgs.set(listOf( "-Xjsr305=strict" ))
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
shadowJar {
|
|
archiveBaseName.set("GameModes-SpeedHG")
|
|
archiveClassifier.set("")
|
|
archiveVersion.set(project.version.toString())
|
|
|
|
relocate("fr.mrmicky.fastboard", "club.mcscrims.speedhg.libs.fastboard")
|
|
relocate("com.zaxxer.hikari", "club.mcscrims.speedhg.libs.hikari")
|
|
}
|
|
|
|
build {
|
|
dependsOn( shadowJar )
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of( 21 ))
|
|
}
|