Package net.glowstone.util
Class GlowHelpMap
java.lang.Object
net.glowstone.util.GlowHelpMap
- All Implemented Interfaces:
org.bukkit.help.HelpMap
An implementation of
HelpMap.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTopic(org.bukkit.help.HelpTopic topic) voidamendTopics(org.bukkit.configuration.ConfigurationSection config) Process topic amendments from help.yml.voidclear()org.bukkit.help.HelpTopicgetHelpTopic(String topicName) Collection<org.bukkit.help.HelpTopic>voidProcesses all the commands registered in the server and creates help topics for them.voidloadConfig(org.bukkit.configuration.ConfigurationSection config) Reads the general topics from help.yml and adds them to the help index.voidregisterHelpTopicFactory(Class commandClass, org.bukkit.help.HelpTopicFactory factory)
-
Constructor Details
-
GlowHelpMap
Creates the instance for the given server.- Parameters:
server- the server
-
-
Method Details
-
getHelpTopic
- Specified by:
getHelpTopicin interfaceorg.bukkit.help.HelpMap
-
getHelpTopics
- Specified by:
getHelpTopicsin interfaceorg.bukkit.help.HelpMap
-
addTopic
public void addTopic(org.bukkit.help.HelpTopic topic) - Specified by:
addTopicin interfaceorg.bukkit.help.HelpMap
-
clear
public void clear()- Specified by:
clearin interfaceorg.bukkit.help.HelpMap
-
registerHelpTopicFactory
- Specified by:
registerHelpTopicFactoryin interfaceorg.bukkit.help.HelpMap
-
getIgnoredPlugins
- Specified by:
getIgnoredPluginsin interfaceorg.bukkit.help.HelpMap
-
loadConfig
public void loadConfig(org.bukkit.configuration.ConfigurationSection config) Reads the general topics from help.yml and adds them to the help index.- Parameters:
config- The configuration to read from.
-
initializeCommands
public void initializeCommands()Processes all the commands registered in the server and creates help topics for them. -
amendTopics
public void amendTopics(org.bukkit.configuration.ConfigurationSection config) Process topic amendments from help.yml.- Parameters:
config- The configuration to read from.
-