类 HelpCommand


public class HelpCommand extends BukkitCommand
  • 构造器详细资料

    • HelpCommand

      public HelpCommand()
  • 方法详细资料

    • execute

      public boolean execute(CommandSender sender, String currentAlias, String[] args)
      从类复制的说明: Command
      执行命令.

      原文:Executes the command, returning its success

      指定者:
      execute 在类中 Command
      参数:
      sender - 执行此命令的对象
      currentAlias - 执行命令所用的别名
      args - 传递给此命令的所有参数,用' '分割
      返回:
      如果命令执行成功则位true,false反之
    • tabComplete

      public List<String> tabComplete(CommandSender sender, String alias, String[] args)
      从类复制的说明: Command
      执行此命令的tab补全时返回选项列表.

      原文:Executed on tab completion for this command, returning a list of options the player can tab through.

      覆盖:
      tabComplete 在类中 Command
      参数:
      sender - 执行此命令的对象
      alias - 被使用的别名
      args - 传递给此命令的所有参数,用' '分割
      返回:
      指定参数的tab补全项列表.这将永远不会为null. 列表可能是不可变的.
    • findPossibleMatches

      protected HelpTopic findPossibleMatches(String searchString)
    • damerauLevenshteinDistance

      protected static int damerauLevenshteinDistance(String s1, String s2)
      Computes the Dameraur-Levenshtein Distance between two strings. Adapted from the algorithm at Wikipedia: Damerau–Levenshtein distance
      参数:
      s1 - The first string being compared.
      s2 - The second string being compared.
      返回:
      The number of substitutions, deletions, insertions, and transpositions required to get from s1 to s2.