@Override public CommandTree<String> getSubs(final Arena arena) { final CommandTree<String> result = new CommandTree<String>(null); if (arena == null) { return result; } for (final ArenaClass aClass : arena.getClasses()) { result.define(new String[] {aClass.getName()}); } return result; }
@Override public CommandTree<String> getSubs(final Arena arena) { final CommandTree<String> result = new CommandTree<String>(null); result.define(new String[] {"clear"}); for (final String main : SUBTYPES) { result.define(new String[] {main, "clear"}); for (final String sub : SUBCOMMANDS) { result.define(new String[] {main, sub, "{Material}"}); } } return result; }