From bd5962a1c533fdbc89ca5a96e1e1951147864b86 Mon Sep 17 00:00:00 2001 From: Rsl1122 <24460436+Rsl1122@users.noreply.github.com> Date: Mon, 13 Jul 2020 21:03:55 +0300 Subject: [PATCH] Implemented player name tab completion --- .../main/java/com/djrapitops/plan/commands/PlanCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java b/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java index a28f52bb1..4cee2a203 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java @@ -26,6 +26,7 @@ import com.djrapitops.plan.identification.Server; import com.djrapitops.plan.settings.locale.Locale; import com.djrapitops.plan.storage.database.DBSystem; import com.djrapitops.plan.storage.database.queries.objects.ServerQueries; +import com.djrapitops.plan.storage.database.queries.objects.UserIdentifierQueries; import com.djrapitops.plan.utilities.java.Lists; import com.djrapitops.plan.utilities.logging.ErrorContext; import com.djrapitops.plan.utilities.logging.ErrorLogger; @@ -127,7 +128,8 @@ public class PlanCommand { } private List playerNames(CMDSender sender, Arguments arguments) { - return Collections.emptyList(); // TODO + String asString = arguments.concatenate(" "); + return dbSystem.getDatabase().query(UserIdentifierQueries.fetchMatchingPlayerNames(asString)); } private Subcommand serverCommand() {