Interface ExecuteCommandEvent
- All Superinterfaces:
Event
- All Known Subinterfaces:
ExecuteCommandEvent.Post
,ExecuteCommandEvent.Pre
Events that fire when commands are executed.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Fired after the command is executed.static interface
Fired 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 theCommandCause
that is involved in this event.Gets the arguments that were requested by theCause
before any events were fired.Gets the command that were requested by theCause
before any events were fired, without any sort of command prefix.
-
Method Details
-
commandCause
CommandCause commandCause()Gets theCommandCause
that is involved in this event.CommandCause.cause()
returns the sameCause
asEvent.cause()
.- Returns:
- The
CommandCause
-
originalCommand
String originalCommand()Gets the command that were requested by theCause
before 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
-
command
String command()Gets the command that will be/has been executed, without any prefix.- Returns:
- The command
-
originalArguments
String originalArguments()Gets the arguments that were requested by theCause
before 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
-
arguments
String arguments()Gets the arguments as a string.- Returns:
- The arguments
-