程序包 org.bukkit.help

类 GenericCommandHelpTopic

java.lang.Object
org.bukkit.help.HelpTopic
org.bukkit.help.GenericCommandHelpTopic

public class GenericCommandHelpTopic extends HelpTopic
缺少替代方案时, 帮助系统将为服务器CommandMap中的每个命令创建GenericCommandHelpTopic实例. 你可以将此类用作自定义帮助主题的基类, 或作为编写自己实现的示例.
  • 字段详细资料

    • command

      protected Command command
  • 构造器详细资料

  • 方法详细资料

    • canSee

      public boolean canSee(@NotNull @NotNull CommandSender sender)
      从类复制的说明: HelpTopic
      确定Player是否被允许查看此帮助主题.

      HelpTopic实现在确定主题可见性时应考虑服务器管理员通过HelpTopic.amendCanSee(String)函数设置的意愿.

      原文: Determines if a Player is allowed to see this help topic.

      HelpTopic implementations should take server administrator wishes into account as set by the HelpTopic.amendCanSee(String) function.

      指定者:
      canSee 在类中 HelpTopic
      参数:
      sender - 相关的Player.
      返回:
      如果Player可以看到此帮助主题则为True, 否则为false.