public final class CommandExecuteEvent extends Object implements ResultedEvent<CommandExecuteEvent.CommandResult>
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandExecuteEvent.CommandResult
Represents the result of the
CommandExecuteEvent. |
ResultedEvent.ComponentResult, ResultedEvent.GenericResult, ResultedEvent.Result| Constructor and Description |
|---|
CommandExecuteEvent(CommandSource commandSource,
String command)
Constructs a CommandExecuteEvent.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand()
Gets the original command being executed without first slash.
|
CommandSource |
getCommandSource() |
CommandExecuteEvent.CommandResult |
getResult()
Returns the result associated with this event.
|
void |
setResult(CommandExecuteEvent.CommandResult result)
Sets the result of this event.
|
String |
toString() |
public CommandExecuteEvent(CommandSource commandSource, String command)
commandSource - the source executing the commandcommand - the command being executed without first slashpublic CommandSource getCommandSource()
public String getCommand()
public CommandExecuteEvent.CommandResult getResult()
ResultedEventgetResult in interface ResultedEvent<CommandExecuteEvent.CommandResult>public void setResult(CommandExecuteEvent.CommandResult result)
ResultedEventsetResult in interface ResultedEvent<CommandExecuteEvent.CommandResult>result - the new result