Class CommandUtils
java.lang.Object
com.zetaplugins.serverlinksz.commands.CommandUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayOptions(List<String> options, String input) Gets a list of options that start with the inputgetDisplayOptions(Set<String> options, String input) Gets a list of options that start with the inputstatic voidthrowPermissionError(org.bukkit.command.CommandSender sender) Throws a permission error message to the sender.static voidthrowUsageError(org.bukkit.command.CommandSender sender, String usage) Throws a usage error message to the sender.
-
Constructor Details
-
CommandUtils
public CommandUtils()
-
-
Method Details
-
throwUsageError
Throws a usage error message to the sender.- Parameters:
sender- Command senderusage- 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
Gets a list of options that start with the input- Parameters:
options- The list of optionsinput- The input- Returns:
- A list of options that start with the input
-
getDisplayOptions
Gets a list of options that start with the input- Parameters:
options- The list of optionsinput- The input- Returns:
- A list of options that start with the input
-