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