From f61c95f3ab2f284b3c2a5758ebe4b5022dbe799d Mon Sep 17 00:00:00 2001 From: Hare Date: Thu, 27 Nov 2025 07:40:32 +0900 Subject: [PATCH] 1.1 --- build.gradle.kts | 12 ++++++++---- .../net/hareworks/simplymcdb/PlayerSerializer.kt | 2 +- src/main/resources/META-INF/.mojang-mapped | 0 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 src/main/resources/META-INF/.mojang-mapped diff --git a/build.gradle.kts b/build.gradle.kts index 2957424..234a54d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ import net.minecrell.pluginyml.bukkit.BukkitPluginDescription group = "net.hareworks" -version = "1.0" +version = "1.1" val exposedVersion = "0.54.0" @@ -9,7 +9,7 @@ plugins { kotlin("jvm") version "2.0.20" kotlin("plugin.serialization") version "2.0.20" id("net.minecrell.plugin-yml.bukkit") version "0.6.0" - id("com.github.johnrengelman.shadow") version "8.1.1" + id("com.gradleup.shadow") version "9.2.2" } repositories { mavenCentral() @@ -27,13 +27,18 @@ dependencies { implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion") implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1") implementation("org.jetbrains.exposed:exposed-kotlin-datetime:$exposedVersion") - compileOnly("de.tr7zw:item-nbt-api-plugin:2.15.3") + implementation("de.tr7zw:item-nbt-api:2.15.3") implementation("com.michael-bull.kotlin-result:kotlin-result:2.0.0") } tasks { shadowJar { archiveBaseName.set("SimplyMCDB") archiveClassifier.set("") + relocate("de.tr7zw.changeme.nbtapi", "net.hareworks.simplymcdb.libs.nbtapi") + } + + build { + dependsOn(shadowJar) } } @@ -45,7 +50,6 @@ bukkit { apiVersion = "1.21.10" authors = listOf("Hare-K02") - depend = listOf("NBTAPI") permissions { register("simplydb.*") { children = listOf("simplydb.command", "simplydb.admin") diff --git a/src/main/kotlin/net/hareworks/simplymcdb/PlayerSerializer.kt b/src/main/kotlin/net/hareworks/simplymcdb/PlayerSerializer.kt index 067530b..40e25d8 100644 --- a/src/main/kotlin/net/hareworks/simplymcdb/PlayerSerializer.kt +++ b/src/main/kotlin/net/hareworks/simplymcdb/PlayerSerializer.kt @@ -1,6 +1,6 @@ package net.hareworks.simplymcdb -import de.tr7zw.nbtapi.NBT +import de.tr7zw.changeme.nbtapi.NBT import java.util.Base64 import java.util.function.Function import io.papermc.paper.registry.RegistryAccess diff --git a/src/main/resources/META-INF/.mojang-mapped b/src/main/resources/META-INF/.mojang-mapped new file mode 100644 index 0000000..e69de29