From 00efb36bcc9784fc7186c5d8bd759938ef7a9db1 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 30 Jan 2014 21:47:43 +0100 Subject: [PATCH] Stop listing in AbstractSelect in case there are too many optoin. --- src/com/massivecraft/mcore/cmd/arg/ARAbstractSelect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/mcore/cmd/arg/ARAbstractSelect.java b/src/com/massivecraft/mcore/cmd/arg/ARAbstractSelect.java index feb62d66..94edb7b1 100644 --- a/src/com/massivecraft/mcore/cmd/arg/ARAbstractSelect.java +++ b/src/com/massivecraft/mcore/cmd/arg/ARAbstractSelect.java @@ -15,7 +15,7 @@ public abstract class ARAbstractSelect extends ArgReaderAbstract public abstract String typename(); public abstract T select(String str, CommandSender sender); public abstract Collection altNames(CommandSender sender); - public boolean canList(CommandSender sender) { return true; } + public boolean canList(CommandSender sender) { return this.altNames(sender).size() < 50; } // -------------------------------------------- // // OVERRIDE