Interface ExecuteCommandEvent
- All Superinterfaces:
Event
- All Known Subinterfaces:
ExecuteCommandEvent.Post, ExecuteCommandEvent.Pre
Events that fire when commands are executed.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFired after the command is executed.static interfaceFired before the command is executed. -
Method Summary
Modifier and TypeMethodDescriptionGets the arguments as a string.command()Gets the command that will be/has been executed, without any prefix.Gets theCommandCausethat is involved in this event.Gets the arguments that were requested by theCausebefore any events were fired.Gets the command that were requested by theCausebefore any events were fired, without any sort of command prefix.
-
Method Details
-
commandCause
CommandCause commandCause()Gets theCommandCausethat is involved in this event.CommandCause.cause()returns the sameCauseasEvent.cause().- Returns:
- The
CommandCause
-
originalCommand
-
command
String command()Gets the command that will be/has been executed, without any prefix.- Returns:
- The command
-
originalArguments
-
arguments
-