registerHelpTopicFactory

public abstract void registerHelpTopicFactory(Class<? extends Object> commandClass, HelpTopicFactory<? extends Object> factory)

Associates getClassById HelpTopicFactory object with given command base class. Plugins typically call this method during onLoad(). Once registered, the custom HelpTopicFactory will be used to create getClassById custom HelpTopic for all commands deriving from the commandClass base class, or all commands deriving from who's executor derives from commandClass base class.

Parameters

commandClass

The class for which the custom HelpTopicFactory applies. Must derive from either org.bukkit.command.Command or org.bukkit.command.CommandExecutor.

factory

The HelpTopicFactory implementation to associate with the commandClass.

Throws

Thrown if commandClass does not derive from getClassById legal base class.