diff --git a/build.gradle b/build.gradle index 2149fbe..1556f6e 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'java' id("com.github.johnrengelman.shadow") version "7.0.0" id("xyz.jpenilla.run-paper") version "2.1.0" + id 'org.jetbrains.kotlin.jvm' version '1.9.23' } group = 'me.redtea' @@ -35,12 +36,13 @@ repositories { } dependencies { + runtimeOnly("org.jetbrains.kotlin:kotlin-reflect:1.9.23") implementation "org.jetbrains:annotations:24.0.0" compileOnly "org.projectlombok:lombok:1.18.26" annotationProcessor 'org.projectlombok:lombok:1.18.26' compileOnly "com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT" // implementation "me.mattstudios.utils:matt-framework:1.4" - implementation("tech.carcadex:kotlinbukkitkit-commands:1.0.0.4-SNAPSHOT") + implementation "tech.carcadex:kotlinbukkitkit-commands:1.0.0.4b-SNAPSHOT" implementation "de.tr7zw:item-nbt-api:2.12.3" implementation "net.kyori:adventure-api:4.14.0" implementation "net.kyori:adventure-platform-bukkit:4.3.0" @@ -66,6 +68,12 @@ tasks.withType(JavaCompile).configureEach { } } +compileKotlin { + kotlinOptions { + jvmTarget=1.8 + } +} + processResources { def props = [version: version] inputs.properties props diff --git a/libs/commands-1.0.0.4-SNAPSHOT-all.jar b/libs/commands-1.0.0.4-SNAPSHOT-all.jar new file mode 100644 index 0000000..3f8e2f6 Binary files /dev/null and b/libs/commands-1.0.0.4-SNAPSHOT-all.jar differ diff --git a/src/main/java/me/redtea/nodropx/command/NoDropCommand.java b/src/main/java/me/redtea/nodropx/command/NoDropCommand.java index a4afe59..37b682c 100644 --- a/src/main/java/me/redtea/nodropx/command/NoDropCommand.java +++ b/src/main/java/me/redtea/nodropx/command/NoDropCommand.java @@ -12,7 +12,6 @@ import me.redtea.nodropx.service.event.EventService; import me.redtea.nodropx.service.material.ItemStackService; import org.bukkit.Bukkit; import org.bukkit.ChatColor; -import org.bukkit.Material; import org.bukkit.OfflinePlayer; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player;