Package com.velocitypowered.api.command
Interface RawCommand
-
- All Superinterfaces:
Command,InvocableCommand<RawCommand.Invocation>
public interface RawCommand extends InvocableCommand<RawCommand.Invocation>
A specialized sub-interface ofCommandwhich 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRawCommand.InvocationContains the invocation data for a raw command.
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidexecute(CommandSource source, String cmdLine)Deprecated.seeCommanddefault voidexecute(CommandSource source, String @NonNull [] args)Deprecated.default voidexecute(RawCommand.Invocation invocation)Executes the command for the specified invocation.default booleanhasPermission(CommandSource source, String cmdLine)Deprecated.seeCommanddefault booleanhasPermission(CommandSource source, String @NonNull [] args)Deprecated.default CompletableFuture<List<String>>suggest(CommandSource source, String currentArgs)Deprecated.seeCommanddefault List<String>suggest(CommandSource source, String @NonNull [] currentArgs)Deprecated.default CompletableFuture<List<String>>suggestAsync(CommandSource source, String @NonNull [] currentArgs)Deprecated.-
Methods inherited from interface com.velocitypowered.api.command.InvocableCommand
hasPermission, suggest, suggestAsync
-
-
-
-
Method Detail
-
execute
@Deprecated default void execute(CommandSource source, String cmdLine)
Deprecated.seeCommandExecutes the command for the specified source.- Parameters:
source- the source to execute the command forcmdLine- the arguments for the command
-
execute
@Deprecated default void execute(CommandSource source, String @NonNull [] args)
Deprecated.Description copied from interface:CommandExecutes the command for the specified source.
-
execute
default void execute(RawCommand.Invocation invocation)
Description copied from interface:InvocableCommandExecutes the command for the specified invocation.- Specified by:
executein interfaceInvocableCommand<RawCommand.Invocation>- Parameters:
invocation- the invocation context
-
suggest
@Deprecated default CompletableFuture<List<String>> suggest(CommandSource source, String currentArgs)
Deprecated.seeCommandProvides tab complete suggestions for the specified source.- Parameters:
source- the source to execute the command forcurrentArgs- the partial arguments for the command- Returns:
- the tab complete suggestions
-
suggest
@Deprecated default List<String> suggest(CommandSource source, String @NonNull [] currentArgs)
Deprecated.Description copied from interface:CommandProvides tab complete suggestions for the specified source.
-
suggestAsync
@Deprecated default CompletableFuture<List<String>> suggestAsync(CommandSource source, String @NonNull [] currentArgs)
Deprecated.Description copied from interface:CommandProvides tab complete suggestions for the specified source.- Specified by:
suggestAsyncin interfaceCommand- Parameters:
source- the source to execute the command forcurrentArgs- the partial arguments for the command- Returns:
- the tab complete suggestions
-
hasPermission
@Deprecated default boolean hasPermission(CommandSource source, String cmdLine)
Deprecated.seeCommandTests to check if the source has permission to perform the command with the provided arguments.- Parameters:
source- the source to execute the command forcmdLine- the arguments for the command- Returns:
trueif the source has permission
-
hasPermission
@Deprecated default boolean hasPermission(CommandSource source, String @NonNull [] args)
Deprecated.Description copied from interface:CommandTests to check if the source has permission to perform the command with the provided arguments.- Specified by:
hasPermissionin interfaceCommand- Parameters:
source- the source to execute the command forargs- the arguments for the command- Returns:
trueif the source has permission
-
-