diff --git a/build.gradle.kts b/build.gradle.kts index a8fe147..b715b48 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,8 +45,8 @@ dependencies { java { withSourcesJar() toolchain { - languageVersion.set(JavaLanguageVersion.of(21)) - vendor.set(JvmVendorSpec.ADOPTIUM) + languageVersion = JavaLanguageVersion.of(21) + vendor = JvmVendorSpec.ADOPTIUM } } @@ -68,7 +68,7 @@ bukkit { tasks { runServer { - minecraftVersion("1.20.2") + minecraftVersion("1.21.1") pluginJars.from(plugin.resolve()) downloadPlugins { @@ -80,7 +80,7 @@ tasks { ) // not available on modrinth, github or hangar - url("https://download.luckperms.net/1515/bukkit/loader/LuckPerms-Bukkit-5.4.102.jar") + url("https://download.luckperms.net/1556/bukkit/loader/LuckPerms-Bukkit-5.4.141.jar") } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c4a1c44..3d8c661 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,9 +1,9 @@ [versions] pluginyml = "0.6.0" -runtask = "2.2.0" +runtask = "2.3.1" shadow = "8.3.0" -paper = "1.20.2-R0.1-SNAPSHOT" +paper = "1.21.1-R0.1-SNAPSHOT" luckperms-api = "5.4" bstats = "3.0.2" @@ -12,7 +12,7 @@ launchplates = "1.0.1-SNAPSHOT" caffeine = "3.1.8" -commandapi = "9.3.0" +commandapi = "9.5.3" debuggery = "1.5.1" [plugins] diff --git a/src/main/java/dev/booky/craftattack/listener/SitListener.java b/src/main/java/dev/booky/craftattack/listener/SitListener.java index f43d280..ab9b1c1 100644 --- a/src/main/java/dev/booky/craftattack/listener/SitListener.java +++ b/src/main/java/dev/booky/craftattack/listener/SitListener.java @@ -26,12 +26,12 @@ import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.entity.EntityDismountEvent; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.persistence.PersistentDataContainer; import org.bukkit.persistence.PersistentDataType; import org.bukkit.util.BoundingBox; import org.bukkit.util.Vector; -import org.spigotmc.event.entity.EntityDismountEvent; import java.util.Collection; import java.util.Objects;