Class CommandUtils

java.lang.Object
com.zetaplugins.serverlinksz.commands.CommandUtils

public class CommandUtils extends Object
  • Constructor Details

    • CommandUtils

      public CommandUtils()
  • Method Details

    • throwUsageError

      public static void throwUsageError(org.bukkit.command.CommandSender sender, String usage)
      Throws a usage error message to the sender.
      Parameters:
      sender - Command sender
      usage - Usage string
    • throwPermissionError

      public static void throwPermissionError(org.bukkit.command.CommandSender sender)
      Throws a permission error message to the sender.
      Parameters:
      sender - Command sender
    • getDisplayOptions

      public static List<String> getDisplayOptions(List<String> options, String input)
      Gets a list of options that start with the input
      Parameters:
      options - The list of options
      input - The input
      Returns:
      A list of options that start with the input
    • getDisplayOptions

      public static List<String> getDisplayOptions(Set<String> options, String input)
      Gets a list of options that start with the input
      Parameters:
      options - The list of options
      input - The input
      Returns:
      A list of options that start with the input