Class CommandUtils

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

public final class CommandUtils extends Object
Utility class for command-related operations.
  • Method Details

    • getDisplayOptions

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

      public static List<String> getPlayerOptions(JavaPlugin plugin, String input)
      Get a list of player options that start with the input
      Parameters:
      plugin - The instance of the plugin
      Returns:
      A list of player options