13
0
geforkt von Mirrors/Paper

Only display help aliases when there are aliases. Fixes BUKKIT-1621

Dieser Commit ist enthalten in:
feildmaster 2012-12-10 01:10:39 -06:00
Ursprung dc93da8e34
Commit 22b1100001

Datei anzeigen

@ -145,7 +145,10 @@ public class SimpleHelpMap implements HelpMap {
} }
// Add alias sub-index // Add alias sub-index
addTopic(new IndexHelpTopic("Aliases", "Lists command aliases", null, Collections2.filter(helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class)))); Collection<HelpTopic> filteredTopics = Collections2.<HelpTopic>filter(helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class));
if (!filteredTopics.isEmpty()) {
addTopic(new IndexHelpTopic("Aliases", "Lists command aliases", null, filteredTopics));
}
// Initialize plugin-level sub-topics // Initialize plugin-level sub-topics
Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>(); Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>();