AbstractComponent component = CommandBook.inst().getComponentManager().getComponent(componentName);
if (component == null) {
throw new CommandException("No such component: " + componentName);
}
final ComponentInformation info = component.getInformation();
sender.sendMessage(ChatColor.YELLOW + info.friendlyName() + " - " + info.desc());
if (info.authors().length > 0 && info.authors()[0].length() > 0) {
sender.sendMessage(ChatColor.YELLOW + "Authors: " +
Arrays.toString(info.authors()).replaceAll("[(.*)]", "$1"));
}
Map<String, String> commands = component.getCommands();