mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
ignore __default for tab complete
This commit is contained in:
@@ -321,7 +321,7 @@ public abstract class BaseCommand extends Command {
|
||||
|
||||
for (Map.Entry<String, RegisteredCommand> entry : subCommands.entries()) {
|
||||
final String key = entry.getKey();
|
||||
if (key.startsWith(argString) && !"__unknown".equals(key)) {
|
||||
if (key.startsWith(argString) && !"__unknown".equals(key) && !"__default".equals(key)) {
|
||||
final RegisteredCommand value = entry.getValue();
|
||||
if (!value.hasPermission(sender)) {
|
||||
continue;
|
||||
|
||||
@@ -26,7 +26,6 @@ package co.aikar.commands;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
Reference in New Issue
Block a user