Plugin Commands

Dica

Since the Command API makes use of the Text API, make sure you read Text first.

Existem duas APIs diferentes para criar comandos no Sponge: a interface CommandCallable e o construtor CommandSpec.

The most comfortable way to create a new command is the CommandSpec builder, which will be detailed in this section. It supports child commands and argument parsing.

Alternatively, you can use CommandCallable, a lower-level interface which provides access to the raw command data. It is described on this page.