Interface StandaloneCommand
public interface StandaloneCommand
Interface representing a generated standalone command executor.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanExecutes the command.Gets the aliases of the command.Gets the description of the command.getName()Gets the primary name of the command.tabComplete(Object sender, String[] args) Tab-completes the command.
-
Method Details
-
getName
String getName()Gets the primary name of the command.- Returns:
- the command name
-
getAliases
Gets the aliases of the command.- Returns:
- the list of command aliases
-
getDescription
String getDescription()Gets the description of the command.- Returns:
- the command description
-
execute
Executes the command.- Parameters:
sender- the sender executing the commandargs- the arguments passed to the command- Returns:
trueif execution succeeded
-
tabComplete
Tab-completes the command.- Parameters:
sender- the sender completing the commandargs- the arguments entered so far- Returns:
- a list of suggestions
-