Add SimpleCommand.Invocation#alias function.
It seems like this ability is generally useful outside RawCommand, so let's add this to SimpleCommand too.
This commit is contained in:
@@ -16,5 +16,11 @@ public interface SimpleCommand extends InvocableCommand<SimpleCommand.Invocation
|
||||
*/
|
||||
interface Invocation extends CommandInvocation<String @NonNull []> {
|
||||
|
||||
/**
|
||||
* Returns the used alias to execute the command.
|
||||
*
|
||||
* @return the used command alias
|
||||
*/
|
||||
String alias();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user