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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTopic
(org.bukkit.help.HelpTopic topic) void
amendTopics
(org.bukkit.configuration.ConfigurationSection config) Process topic amendments from help.yml.void
clear()
org.bukkit.help.HelpTopic
getHelpTopic
(String topicName) Collection<org.bukkit.help.HelpTopic>
void
Processes all the commands registered in the server and creates help topics for them.void
loadConfig
(org.bukkit.configuration.ConfigurationSection config) Reads the general topics from help.yml and adds them to the help index.void
registerHelpTopicFactory
(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:
getHelpTopic
in interfaceorg.bukkit.help.HelpMap
-
getHelpTopics
- Specified by:
getHelpTopics
in interfaceorg.bukkit.help.HelpMap
-
addTopic
public void addTopic(org.bukkit.help.HelpTopic topic) - Specified by:
addTopic
in interfaceorg.bukkit.help.HelpMap
-
clear
public void clear()- Specified by:
clear
in interfaceorg.bukkit.help.HelpMap
-
registerHelpTopicFactory
- Specified by:
registerHelpTopicFactory
in interfaceorg.bukkit.help.HelpMap
-
getIgnoredPlugins
- Specified by:
getIgnoredPlugins
in 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.
-