[Bleeding] Added option to completely disable all automatic help topic generation by adding "All" to the ignore-plugins list in help.yml. Addresses BUKKIT-1264

This commit is contained in:
rmichela authored and EvilSeph committed 2012-03-22 00:50:09 -04:00
1 parent 31b1bc02ca
commit eb3c092ef8
3 files changed
+22 -9

No files matched your search

@@ -90,6 +90,11 @@ public class SimpleHelpMap implements HelpMap {
public synchronized void initializeCommands() {
// ** Load topics from highest to lowest priority order **
Set<String> ignoredPlugins = new HashSet<String>(yaml.getIgnoredPlugins());
// Don't load any automatic help topics if All is ignored
if (ignoredPlugins.contains("All")) {
return;
}
// Initialize help topics from the server's command map
outer: for (Command command : server.getCommandMap().getCommands()) {