Package com.velocitypowered.api.command
Interface CommandInvocation<T>
-
- Type Parameters:
T- the type of the arguments
- All Known Subinterfaces:
RawCommand.Invocation,SimpleCommand.Invocation
public interface CommandInvocation<T>Provides information related to the (possible) execution of aCommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringalias()Returns the alias used to invoke the command.Targuments()Returns the arguments after the command alias.CommandSourcesource()Returns the source to execute the command for.
-
-
-
Method Detail
-
source
CommandSource source()
Returns the source to execute the command for.- Returns:
- the command source
-
arguments
T arguments()
Returns the arguments after the command alias.- Returns:
- the command arguments
-
alias
String alias()
Returns the alias used to invoke the command.- Returns:
- the command used to invoke the command.
-
-