Package org.bukkit.help
Class GenericCommandHelpTopic
- java.lang.Object
-
- org.bukkit.help.HelpTopic
-
- org.bukkit.help.GenericCommandHelpTopic
-
public class GenericCommandHelpTopic extends HelpTopic
Lacking an alternative, the help system will create instances of GenericCommandHelpTopic for each command in the server's CommandMap. You can use this class as a base class for custom help topics, or as an example for how to write your own.
-
-
Constructor Summary
Constructors Constructor Description GenericCommandHelpTopic(Command command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canSee(CommandSender sender)
Determines if aPlayer
is allowed to see this help topic.-
Methods inherited from class org.bukkit.help.HelpTopic
amendCanSee, amendTopic, applyAmendment, getFullText, getName, getShortText
-
-
-
-
Field Detail
-
command
protected Command command
-
-
Constructor Detail
-
GenericCommandHelpTopic
public GenericCommandHelpTopic(@NotNull Command command)
-
-
Method Detail
-
canSee
public boolean canSee(@NotNull CommandSender sender)
Description copied from class:HelpTopic
Determines if aPlayer
is allowed to see this help topic.HelpTopic implementations should take server administrator wishes into account as set by the
HelpTopic.amendCanSee(String)
function.
-
-