Skip to content

Commit

Permalink
Initial 1.20.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed May 14, 2024
1 parent 0ffeb66 commit 8cd9266
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 11 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ group = "xyz.jpenilla"
version = "1.8.4-SNAPSHOT".decorateVersion()
description = "Customizable trades for Wandering Traders."

val mcVersion = "1.20.4"
val mcVersion = "1.20.6"

repositories {
mavenCentral()
Expand All @@ -37,11 +37,11 @@ dependencies {
compileOnly("io.papermc.paper", "paper-api", "1.20.1-R0.1-SNAPSHOT")

implementation("io.papermc", "paperlib", "1.0.8")
implementation("xyz.jpenilla", "legacy-plugin-base", "0.0.1+115-SNAPSHOT")
implementation("xyz.jpenilla", "legacy-plugin-base", "0.0.1+117-SNAPSHOT")
implementation("org.bstats", "bstats-bukkit", "3.0.2")

implementation(platform("org.incendo:cloud-bom:2.0.0-beta.5"))
implementation(platform("org.incendo:cloud-minecraft-bom:2.0.0-beta.6"))
implementation(platform("org.incendo:cloud-bom:2.0.0-rc.1"))
implementation(platform("org.incendo:cloud-minecraft-bom:2.0.0-beta.7"))
implementation("org.incendo:cloud-paper")
implementation("org.incendo:cloud-minecraft-extras")
implementation(platform("org.incendo:cloud-translations-bom:1.0.0-SNAPSHOT"))
Expand All @@ -62,7 +62,10 @@ dependencies {
}

indra {
javaVersions().target(17)
javaVersions{
minimumToolchain(21)
target(17)
}
}

bukkitPluginYaml {
Expand All @@ -87,9 +90,11 @@ tasks {
}
jar {
archiveClassifier.set("noshade")
manifest {
attributes("paperweight-mappings-namespace" to "mojang")
}
}
shadowJar {
minimize()
archiveFileName.set("${project.name}-${project.version}.jar")
sequenceOf(
"org.bstats",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import net.kyori.adventure.text.Component;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -114,7 +115,7 @@ private static Collection<Player> players(final CommandContext<CommandSender> ct
if (ctx.sender() instanceof Player player) {
players = List.of(player);
} else {
throw new InvalidCommandSenderException(ctx.sender(), Player.class, null);
throw new InvalidCommandSenderException(ctx.sender(), Set.of(Player.class), List.of(), null);
}
}
return players;
Expand Down

0 comments on commit 8cd9266

Please sign in to comment.