From bcab3be2e2c791d8fc5e721e3ee06194965d3922 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 14 Jul 2020 21:31:16 -0400 Subject: [PATCH] Fix Checkstyle error --- .../com/velocitypowered/api/command/RawCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/command/RawCommand.java b/api/src/main/java/com/velocitypowered/api/command/RawCommand.java index 8fcf84bcf..431140c6f 100644 --- a/api/src/main/java/com/velocitypowered/api/command/RawCommand.java +++ b/api/src/main/java/com/velocitypowered/api/command/RawCommand.java @@ -35,14 +35,14 @@ public interface RawCommand extends Command { } @Override - default CompletableFuture> suggestAsync(CommandSource source, - String @NonNull [] currentArgs) { - return suggest(source, String.join(" ", currentArgs)); + default List suggest(CommandSource source, String @NonNull [] currentArgs) { + return suggestAsync(source, currentArgs).join(); } @Override - default List suggest(CommandSource source, String @NonNull [] currentArgs) { - return suggestAsync(source, currentArgs).join(); + default CompletableFuture> suggestAsync(CommandSource source, + String @NonNull [] currentArgs) { + return suggest(source, String.join(" ", currentArgs)); } @Override