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