- Replaced synchronous permission checks with asynchronous LuckPerms user loading. - Added `getOrLoadUser` utility to simplify user-related operations. - Introduced web-originated chat command processing via new `PunishmentCommandBuilder` and `PunishFromWebHandler`. - Updated `MuteServer`, `ToggleGlobalChat`, and `ToggleableForCustomChannel` to use async permission checks. - Added test suite for `PunishmentCommandBuilder`. - Expanded chat handling to process party messages from web events.
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
plugins {
|
|
`maven-publish`
|
|
id("com.gradleup.shadow")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":api")) // API
|
|
compileOnly("org.projectlombok:lombok:1.18.46")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.46")
|
|
compileOnly("com.velocitypowered:velocity-api:3.5.0-SNAPSHOT")
|
|
annotationProcessor("com.velocitypowered:velocity-api:3.5.0-SNAPSHOT")
|
|
implementation("mysql:mysql-connector-java:8.0.33") // mysql
|
|
implementation("org.spongepowered", "configurate-yaml", "4.2.0")
|
|
compileOnly("net.kyori:adventure-text-minimessage:4.23.0")
|
|
compileOnly("com.gitlab.ruany:LiteBansAPI:0.3.5")
|
|
compileOnly("com.alttd.proxydiscordlink:ProxyDiscordLink:1.0.1-SNAPSHOT")
|
|
compileOnly("net.luckperms:api:5.5") // Luckperms
|
|
|
|
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
tasks {
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
shadowJar {
|
|
archiveFileName.set("${rootProject.name}-${project.name}-${project.version}.jar")
|
|
// minimize()
|
|
listOf(
|
|
// "net.kyori.adventure.text.minimessage",
|
|
"org.spongepowered.configurate"
|
|
).forEach { relocate(it, "${rootProject.group}.lib.${it.substringAfterLast(".")}") }
|
|
}
|
|
|
|
build {
|
|
// setBuildDir("${rootProject.buildDir}")
|
|
dependsOn(shadowJar)
|
|
}
|
|
|
|
}
|