mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
[Bleeding] Moved DefaultHelpTopic and GenericCommandHelpTopic to public bukkit api.
This commit is contained in:
1 parent
378424a1a1
commit
03ce67c38c
3 files changed
+2
-131
No files matched your search
@@ -6,9 +6,7 @@ import org.bukkit.command.MultipleCommandAlias;
|
||||
import org.bukkit.command.PluginCommand;
|
||||
import org.bukkit.command.defaults.VanillaCommand;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.help.HelpMap;
|
||||
import org.bukkit.help.HelpTopic;
|
||||
import org.bukkit.help.HelpTopicFactory;
|
||||
import org.bukkit.help.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -23,7 +21,7 @@ public class SimpleHelpMap implements HelpMap {
|
||||
|
||||
public SimpleHelpMap() {
|
||||
helpTopics = new TreeMap<String, HelpTopic>(new HelpTopicComparator()); // Using a TreeMap for its explicit sorting on key
|
||||
defaultTopic = new DefaultHelpTopic(helpTopics.values());
|
||||
defaultTopic = new IndexHelpTopic(helpTopics.values());
|
||||
topicFactoryMap = new HashMap<Class, HelpTopicFactory>();
|
||||
|
||||
registerHelpTopicFactory(MultipleCommandAlias.class, new MultipleCommandAliasHelpTopicFactory());
|
||||
|
||||
Reference in new issue
Block a user