Return online players instead of nothing when tab completing. (Fixes #1331)

This commit is contained in:
Ali Moghnieh 2017-06-29 03:41:13 +01:00
parent 298c292ffb
commit 12930cfce4
No known key found for this signature in database
GPG Key ID: F09D3A1BAF2E6D70

View File

@ -205,7 +205,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand {
// Doesn't need to do any starts-with checks
protected List<String> 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) {