Update build files and listener behavior
Set project version to 1.0.1-SNAPSHOT, updated Maven repository URLs, and adjusted credentials handling for Nexus. Refactored dependency configurations and modified LiteBansBanListener to update the embed title from "Auto Discord ban" to "Evidence".
This commit is contained in:
parent
8ddbfcd521
commit
34b8824d49
|
|
@ -7,6 +7,7 @@ plugins {
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "com.alttd.proxydiscordlink"
|
group = "com.alttd.proxydiscordlink"
|
||||||
description = "A velocity plugin to link Discord and Minecraft accounts."
|
description = "A velocity plugin to link Discord and Minecraft accounts."
|
||||||
|
version = "1.0.1-SNAPSHOT"
|
||||||
|
|
||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
apply(plugin = "maven-publish")
|
apply(plugin = "maven-publish")
|
||||||
|
|
@ -41,18 +42,17 @@ dependencies {
|
||||||
annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
|
annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
|
||||||
// JDA
|
// JDA
|
||||||
implementation("net.dv8tion:JDA:5.0.0-beta.2") {
|
implementation("net.dv8tion:JDA:5.0.0-beta.2") {
|
||||||
shadow("net.dv8tion:JDA:5.0.0-beta.2") {
|
exclude("opus-java") // exclude audio
|
||||||
exclude("opus-java") // exclude audio
|
|
||||||
}
|
|
||||||
compileOnly("com.gitlab.ruany:LitebansAPI:0.3.5")
|
|
||||||
// LuckPerms
|
|
||||||
compileOnly("net.luckperms:api:5.3")
|
|
||||||
// MySQL
|
|
||||||
runtimeOnly("mysql:mysql-connector-java:8.0.23")
|
|
||||||
// ShutdownInfo
|
|
||||||
compileOnly("com.alttd:ShutdownInfo:1.0")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileOnly("com.gitlab.ruany:LitebansAPI:0.3.5")
|
||||||
|
// LuckPerms
|
||||||
|
compileOnly("net.luckperms:api:5.3")
|
||||||
|
// MySQL
|
||||||
|
runtimeOnly("mysql:mysql-connector-java:8.0.23")
|
||||||
|
// ShutdownInfo
|
||||||
|
compileOnly("com.alttd:shutdowninfo:1.0.0-SNAPSHOT")
|
||||||
|
|
||||||
implementation("org.aarboard.nextcloud:nextcloud-api:13.1.0") //NextCloud
|
implementation("org.aarboard.nextcloud:nextcloud-api:13.1.0") //NextCloud
|
||||||
|
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
|
||||||
|
|
@ -80,15 +80,20 @@ dependencies {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
artifact(tasks.shadowJar.get()) {
|
||||||
|
classifier = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories{
|
repositories{
|
||||||
maven {
|
maven {
|
||||||
name = "maven"
|
name = "nexus"
|
||||||
url = uri("https://repo.destro.xyz/snapshots")
|
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
||||||
credentials(PasswordCredentials::class)
|
credentials {
|
||||||
|
username = project.property("alttdSnapshotUsername") as String
|
||||||
|
password = project.property("alttdSnapshotPassword") as String
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,19 @@
|
||||||
rootProject.name = "ProxyDiscordLink"
|
rootProject.name = "ProxyDiscordLink"
|
||||||
|
|
||||||
|
val nexusUser = providers.gradleProperty("alttdSnapshotUsername").get()
|
||||||
|
val nexusPass = providers.gradleProperty("alttdSnapshotPassword").get()
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
// Altitude
|
// Altitude
|
||||||
maven {
|
maven {
|
||||||
name = "maven"
|
name = "nexus"
|
||||||
url = uri("https://repo.destro.xyz/snapshots")
|
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
||||||
credentials(PasswordCredentials::class)
|
credentials {
|
||||||
|
username = nexusUser
|
||||||
|
password = nexusPass
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Velocity
|
// Velocity
|
||||||
maven("https://nexus.velocitypowered.com/repository/maven-public/")
|
maven("https://nexus.velocitypowered.com/repository/maven-public/")
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ public class LiteBansBanListener {
|
||||||
.addField("Banned by", entry.getExecutorName() == null ? "unknown" : entry.getExecutorName(), true)
|
.addField("Banned by", entry.getExecutorName() == null ? "unknown" : entry.getExecutorName(), true)
|
||||||
.addField("Ban duration", getBanDuration(entry), true)
|
.addField("Ban duration", getBanDuration(entry), true)
|
||||||
.addField("Reason", entry.getReason() == null ? "unknown" : entry.getReason(), true)
|
.addField("Reason", entry.getReason() == null ? "unknown" : entry.getReason(), true)
|
||||||
.setTitle("Auto Discord ban");
|
.setTitle("Evidence");
|
||||||
|
|
||||||
Optional<String> returnUrl;
|
Optional<String> returnUrl;
|
||||||
if (optionalUrl.isPresent()) {
|
if (optionalUrl.isPresent()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user