commit d55ddcc12462004c500312d7283c4c8ded65cadf Author: AXOLOTsh <96595812+AXOLOTsh@users.noreply.github.com> Date: Tue Apr 21 16:24:18 2026 +0300 Add DiscordSRV integration commit 9e86ebc6ea400bc3b6e95153ac067b9d0716928e Author: AXOLOTsh <96595812+AXOLOTsh@users.noreply.github.com> Date: Tue Apr 21 15:43:16 2026 +0300 Add reload command commit a7fa9f980ca0508ec8a1d7841ee17bb99701811c Author: AXOLOTsh <96595812+AXOLOTsh@users.noreply.github.com> Date: Tue Apr 21 15:41:37 2026 +0300 Fix private message error message shown on receiver locale bug commit 11005fd0eef6a6711fa3b33f19f3b690fa784ffd Author: AXOLOTsh <96595812+AXOLOTsh@users.noreply.github.com> Date: Tue Apr 21 15:04:22 2026 +0300 Add project files
69 lines
1.7 KiB
Kotlin
69 lines
1.7 KiB
Kotlin
plugins {
|
|
id("java-library")
|
|
id("com.gradleup.shadow") version "9.4.1"
|
|
id("xyz.jpenilla.run-paper") version "3.0.2"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
|
|
maven {
|
|
name = "axolotsh-repository"
|
|
url = uri("https://maven.axolotsh.org/releases")
|
|
}
|
|
maven {
|
|
name = "scarsz-repository"
|
|
url = uri("https://nexus.scarsz.me/content/groups/public/")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.github.axolotsh:localizationlib:1.4.2")
|
|
implementation("io.github.axolotsh:registrylib:1.0")
|
|
|
|
compileOnly("org.projectlombok:lombok:1.18.44")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.44")
|
|
|
|
compileOnly("dev.jorel:commandapi-paper-core:11.2.0")
|
|
compileOnly("dev.jorel:commandapi-paper-annotations:11.2.0")
|
|
annotationProcessor("dev.jorel:commandapi-spigot-annotations:11.2.0")
|
|
|
|
compileOnly("com.discordsrv:discordsrv:1.28.0")
|
|
|
|
compileOnly("io.papermc.paper:paper-api:26.1.1.build.+")
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
|
|
tasks {
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
|
|
runServer {
|
|
minecraftVersion("26.1.1")
|
|
jvmArgs("-Xms2G", "-Xmx2G", "-Dcom.mojang.eula.agree=true")
|
|
|
|
downloadPlugins {
|
|
hangar("CommandAPI", "11.2.0")
|
|
modrinth("DiscordSRV", "1.30.4")
|
|
}
|
|
}
|
|
|
|
processResources {
|
|
val props = mapOf(
|
|
"version" to project.version,
|
|
"description" to (project.description ?: ""))
|
|
|
|
filesMatching("plugin.yml") {
|
|
expand(props)
|
|
}
|
|
filesMatching("paper-plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|
|
}
|