mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-30 21:17:49 +01:00
Implemented player name tab completion
This commit is contained in:
parent
14e009cb67
commit
bd5962a1c5
@ -26,6 +26,7 @@ import com.djrapitops.plan.identification.Server;
|
|||||||
import com.djrapitops.plan.settings.locale.Locale;
|
import com.djrapitops.plan.settings.locale.Locale;
|
||||||
import com.djrapitops.plan.storage.database.DBSystem;
|
import com.djrapitops.plan.storage.database.DBSystem;
|
||||||
import com.djrapitops.plan.storage.database.queries.objects.ServerQueries;
|
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.java.Lists;
|
||||||
import com.djrapitops.plan.utilities.logging.ErrorContext;
|
import com.djrapitops.plan.utilities.logging.ErrorContext;
|
||||||
import com.djrapitops.plan.utilities.logging.ErrorLogger;
|
import com.djrapitops.plan.utilities.logging.ErrorLogger;
|
||||||
@ -127,7 +128,8 @@ public class PlanCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private List<String> playerNames(CMDSender sender, Arguments arguments) {
|
private List<String> playerNames(CMDSender sender, Arguments arguments) {
|
||||||
return Collections.emptyList(); // TODO
|
String asString = arguments.concatenate(" ");
|
||||||
|
return dbSystem.getDatabase().query(UserIdentifierQueries.fetchMatchingPlayerNames(asString));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Subcommand serverCommand() {
|
private Subcommand serverCommand() {
|
||||||
|
Loading…
Reference in New Issue
Block a user