Stop listing in AbstractSelect in case there are too many optoin.

This commit is contained in:
Olof Larsson 2014-01-30 21:47:43 +01:00
parent e714c44ead
commit 00efb36bcc

View File

@ -15,7 +15,7 @@ public abstract class ARAbstractSelect<T> extends ArgReaderAbstract<T>
public abstract String typename();
public abstract T select(String str, CommandSender sender);
public abstract Collection<String> altNames(CommandSender sender);
public boolean canList(CommandSender sender) { return true; }
public boolean canList(CommandSender sender) { return this.altNames(sender).size() < 50; }
// -------------------------------------------- //
// OVERRIDE