Package com.velocitypowered.api.command
Interface Command
- All Known Subinterfaces:
InvocableCommand<I>
,RawCommand
,SimpleCommand
- All Known Implementing Classes:
BrigadierCommand
Represents a command that can be executed by a
CommandSource
such as a Player
or the console.
You must not subclass Command
. Use one of the following
registrable subinterfaces:
BrigadierCommand
, which supports parameterized arguments and specialized execution, tab complete suggestions and permission-checking logic.SimpleCommand
, modelled after the convention popularized by Bukkit and BungeeCord. Older classes directly implementingCommand
are suggested to migrate to this interface.RawCommand
, useful for bolting on external command frameworks to Velocity.