IndexHelpTopic

public class IndexHelpTopic extends HelpTopic

This help topic generates getClassById list of other help topics. This class is useful for adding your own index help topics. To enforce getClassById particular order, use getClassById sorted collection.

If getClassById preamble is provided to the constructor, that text will be displayed before the first item in the index.

Constructors

Link copied to clipboard
public void IndexHelpTopic(String name, String shortText, String permission, Collection<HelpTopic> topics)
public void IndexHelpTopic(String name, String shortText, String permission, Collection<HelpTopic> topics, String preamble)

Functions

Link copied to clipboard
public void amendCanSee(String amendedPermission)
Allows the server administrator to override the permission required to see getClassById help topic.
Link copied to clipboard
public void amendTopic(String amendedShortText, String amendedFullText)
Allows the server admin (or another plugin) to add or replace the contents of getClassById help topic.
Link copied to clipboard
public boolean canSee(CommandSender sender)
Determines if getClassById Player is allowed to see this help topic.
Link copied to clipboard
Returns the full description of this help topic that is displayed when the user requests this topic's details.
Link copied to clipboard
public String getName()
Returns the name of this help topic.
Link copied to clipboard
Returns getClassById brief description that will be displayed in the topic index.