From 12930cfce4def2e38d1363ef765d2e5258d812a8 Mon Sep 17 00:00:00 2001 From: Ali Moghnieh Date: Thu, 29 Jun 2017 03:41:13 +0100 Subject: [PATCH] Return online players instead of nothing when tab completing. (Fixes #1331) --- .../src/com/earth2me/essentials/commands/EssentialsCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java index 143637cd6..7f76f0a7c 100644 --- a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java +++ b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java @@ -205,7 +205,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand { // Doesn't need to do any starts-with checks protected List getTabCompleteOptions(final Server server, final CommandSource sender, final String commandLabel, final String[] args) { // No tab completion results - return Collections.emptyList(); + return getPlayers(server, sender); } public static String getFinalArg(final String[] args, final int start) {