mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix list command exposing groups with vanished players (#4032)
Fixes #4018.
This commit is contained in:
parent
c41bb0ec42
commit
94d4385d41
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ public class Commandlist extends EssentialsCommand {
|
|||
@Override
|
||||
protected List<String> getTabCompleteOptions(final Server server, final CommandSource sender, final String commandLabel, final String[] args) {
|
||||
if (args.length == 1) {
|
||||
return new ArrayList<>(PlayerList.getPlayerLists(ess, sender.getUser(ess), true).keySet());
|
||||
return new ArrayList<>(PlayerList.getPlayerLists(ess, sender.getUser(ess), false).keySet());
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue