public interface SendCommandEvent extends GameEvent, Cancellable, CauseTracked
Modifier and Type | Method and Description |
---|---|
String |
getArguments()
Get the arguments as a string.
|
String |
getCommand()
Get the command as a string, without any sort of command prefix.
|
CommandResult |
getResult()
The result of the command.
|
void |
setResult(CommandResult result)
Sets the result of the command.
|
getCallbacks
isCancelled, setCancelled
getCause
String getCommand()
For example, if the message was /example bob 3 -f
, then
the command would be example
.
String getArguments()
For example, if the message was /example bob 3 -f
, then
the arguments would be bob 3 -f
.
CommandResult getResult()
void setResult(CommandResult result)
result
- The result of the command