public interface RawCommand extends InvocableCommand<RawCommand.Invocation>
Command which indicates the proxy should pass
the command and its arguments directly without further processing.
This is useful for bolting on external command frameworks to Velocity.| Modifier and Type | Interface and Description |
|---|---|
static interface |
RawCommand.Invocation
Contains the invocation data for a raw command.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
execute(CommandSource source,
String cmdLine)
Deprecated.
see
Command |
default void |
execute(CommandSource source,
String[] args)
Deprecated.
|
default void |
execute(RawCommand.Invocation invocation)
Executes the command for the specified invocation.
|
default boolean |
hasPermission(CommandSource source,
String cmdLine)
Deprecated.
see
Command |
default boolean |
hasPermission(CommandSource source,
String[] args)
Deprecated.
|
default CompletableFuture<List<String>> |
suggest(CommandSource source,
String currentArgs)
Deprecated.
see
Command |
default List<String> |
suggest(CommandSource source,
String[] currentArgs)
Deprecated.
|
default CompletableFuture<List<String>> |
suggestAsync(CommandSource source,
String[] currentArgs)
Deprecated.
|
hasPermission, suggest, suggestAsync@Deprecated default void execute(CommandSource source, String cmdLine)
Commandsource - the source to execute the command forcmdLine - the arguments for the command@Deprecated default void execute(CommandSource source, String[] args)
Commanddefault void execute(RawCommand.Invocation invocation)
InvocableCommandexecute in interface InvocableCommand<RawCommand.Invocation>invocation - the invocation context@Deprecated default CompletableFuture<List<String>> suggest(CommandSource source, String currentArgs)
Commandsource - the source to execute the command forcurrentArgs - the partial arguments for the command@Deprecated default List<String> suggest(CommandSource source, String[] currentArgs)
Command@Deprecated default CompletableFuture<List<String>> suggestAsync(CommandSource source, String[] currentArgs)
CommandsuggestAsync in interface Commandsource - the source to execute the command forcurrentArgs - the partial arguments for the command@Deprecated default boolean hasPermission(CommandSource source, String cmdLine)
Commandsource - the source to execute the command forcmdLine - the arguments for the commandtrue if the source has permission@Deprecated default boolean hasPermission(CommandSource source, String[] args)
CommandhasPermission in interface Commandsource - the source to execute the command forargs - the arguments for the commandtrue if the source has permission