Interface ExecuteCommandEvent

All Superinterfaces:
Event
All Known Subinterfaces:
ExecuteCommandEvent.Post, ExecuteCommandEvent.Pre

public interface ExecuteCommandEvent extends Event
Events that fire when commands are executed.
  • Method Details Link icon

    • commandCause Link icon

      CommandCause commandCause()
      Gets the CommandCause that is involved in this event.

      CommandCause.cause() returns the same Cause as Event.cause().

      Returns:
      The CommandCause
    • originalCommand Link icon

      String originalCommand()
      Gets the command that were requested by the Cause 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 be example.

      Returns:
      The original command
    • command Link icon

      String command()
      Gets the command that will be/has been executed, without any prefix.
      Returns:
      The command
    • originalArguments Link icon

      String originalArguments()
      Gets the arguments that were requested by the Cause before any events were fired.

      For example, if the message was /example bob 3 -f, then the arguments would be bob 3 -f.

      Returns:
      The original arguments
    • arguments Link icon

      String arguments()
      Gets the arguments as a string.
      Returns:
      The arguments