Interface ExecuteCommandEvent
- 
- All Superinterfaces:
- Event
 - All Known Subinterfaces:
- ExecuteCommandEvent.Post,- ExecuteCommandEvent.Pre
 
 public interface ExecuteCommandEvent extends Event Events that fire when commands are executed.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceExecuteCommandEvent.PostFired after the command is executed.static interfaceExecuteCommandEvent.PreFired before the command is executed.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringarguments()Gets the arguments as a string.Stringcommand()Gets the command that will be/has been executed, without any prefix.CommandCausecommandCause()Gets theCommandCausethat is involved in this event.StringoriginalArguments()Gets the arguments that were requested by theCausebefore any events were fired.StringoriginalCommand()Gets the command that were requested by theCausebefore any events were fired, without any sort of command prefix.
 
- 
- 
- 
Method Detail- 
commandCauseCommandCause commandCause() Gets theCommandCausethat is involved in this event.CommandCause.cause()returns the sameCauseasEvent.cause().- Returns:
- The CommandCause
 
 - 
originalCommandString originalCommand() Gets the command that were requested by theCausebefore any events were fired, without any sort of command prefix.For example, if the message was /example bob 3 -f, then the command would beexample.- Returns:
- The original command
 
 - 
commandString command() Gets the command that will be/has been executed, without any prefix.- Returns:
- The command
 
 - 
originalArgumentsString originalArguments() Gets the arguments that were requested by theCausebefore any events were fired.For example, if the message was /example bob 3 -f, then the arguments would bebob 3 -f.- Returns:
- The original arguments
 
 - 
argumentsString arguments() Gets the arguments as a string.- Returns:
- The arguments
 
 
- 
 
-