Package org.bukkit.help
Interface HelpMap
public interface HelpMap
The HelpMap tracks all help topics registered in a Bukkit server. When the
 server starts up or is reloaded, help is processed and topics are added in
 the following order:
 
- General topics are loaded from the help.yml
- Plugins load and optionally call addTopic()
- Registered plugin commands are processed by HelpTopicFactoryobjects to create topics
- Topic contents are amended as directed in help.yml
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a topic to the server's help index.voidclear()Clears out the contents of the help index.getHelpTopic(@NotNull String topicName) Returns a help topic for a given topic name.Returns a collection of all the registered help topics.Gets the list of plugins the server administrator has chosen to exclude from the help index.voidregisterHelpTopicFactory(@NotNull Class<?> commandClass, @NotNull HelpTopicFactory<?> factory) Associates aHelpTopicFactoryobject with given command base class.
- 
Method Details- 
getHelpTopicReturns a help topic for a given topic name.- Parameters:
- topicName- The help topic name to look up.
- Returns:
- A HelpTopicobject matching the topic name or null if none can be found.
 
- 
getHelpTopicsReturns a collection of all the registered help topics.- Returns:
- All the registered help topics.
 
- 
addTopicAdds a topic to the server's help index.- Parameters:
- topic- The new help topic to add.
 
- 
clearvoid clear()Clears out the contents of the help index. Normally called during server reload.
- 
registerHelpTopicFactoryvoid registerHelpTopicFactory(@NotNull @NotNull Class<?> commandClass, @NotNull @NotNull HelpTopicFactory<?> factory) Associates aHelpTopicFactoryobject with given command base class. Plugins typically call this method duringonLoad(). Once registered, the custom HelpTopicFactory will be used to create a customHelpTopicfor all commands deriving from thecommandClassbase class, or all commands deriving fromPluginCommandwho's executor derives fromcommandClassbase class.- Parameters:
- commandClass- The class for which the custom HelpTopicFactory applies. Must derive from either- Commandor- CommandExecutor.
- factory- The- HelpTopicFactoryimplementation to associate with the- commandClass.
- Throws:
- IllegalArgumentException- Thrown if- commandClassdoes not derive from a legal base class.
 
- 
getIgnoredPluginsGets the list of plugins the server administrator has chosen to exclude from the help index. Plugin authors who choose to directly extendCommandinstead ofPluginCommandwill need to check this collection in theirHelpTopicFactoryimplementations to ensure they meet the server administrator's expectations.- Returns:
- A list of plugins that should be excluded from the help index.
 
 
-