From 00b3beea328d34a4ecb02a3a07a71c166e66b8d4 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 16 Jun 2024 17:49:42 +0100 Subject: [PATCH] fix: use of missing method on adventure-platform-bukkit --- .../main/java/net/william278/uniform/bukkit/BukkitCommand.java | 3 ++- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/net/william278/uniform/bukkit/BukkitCommand.java b/bukkit/src/main/java/net/william278/uniform/bukkit/BukkitCommand.java index 8f19d52..57c5b48 100644 --- a/bukkit/src/main/java/net/william278/uniform/bukkit/BukkitCommand.java +++ b/bukkit/src/main/java/net/william278/uniform/bukkit/BukkitCommand.java @@ -72,6 +72,7 @@ public class BukkitCommand extends BaseCommand { this.setAliases(command.getAliases()); } + @SuppressWarnings("deprecation") @Override public boolean execute(@NotNull CommandSender commandSender, @NotNull String alias, @NotNull String[] args) { try { @@ -79,7 +80,7 @@ public class BukkitCommand extends BaseCommand { } catch (CommandSyntaxException e) { getAudience(commandSender).sendMessage(Component .translatable("command.context.parse_error", NamedTextColor.RED) - .arguments( + .args( Component.text(e.getRawMessage().getString()), Component.text(e.getCursor()), Component.text(e.getContext()) diff --git a/gradle.properties b/gradle.properties index 740b253..7ff144c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,6 +3,6 @@ javaVersion=17 org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.daemon=true -library_version=1.0.2 +library_version=1.0.3 library_archive=uniform library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system. \ No newline at end of file