Class CommandProcessEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.node.event.command.CommandProcessEvent
Direct Known Subclasses:
CommandPostProcessEvent, CommandPreProcessEvent

class CommandProcessEvent extends eu.cloudnetservice.driver.event.Event
  • Field Details

    • tokenizedCommandInput

      private final Collection<String> tokenizedCommandInput
    • command

      private final eu.cloudnetservice.driver.command.CommandInfo command
    • commandSource

      private final CommandSource commandSource
    • commandProvider

      private final CommandProvider commandProvider
  • Constructor Details

  • Method Details

    • tokenizedCommandInput

      @NonNull public @NonNull Collection<String> tokenizedCommandInput()
      Gets the tokenized command input as a collection of strings.
      Returns:
      the command line as a list.
    • command

      @NonNull public @NonNull eu.cloudnetservice.driver.command.CommandInfo command()
      Gets the root command info of the command that lead to this event call.
      Returns:
      the command info to the event.
    • commandSource

      @NonNull public @NonNull CommandSource commandSource()
      Gets the command source that executed the command and lead to this event call.
      Returns:
      the command executor.
    • commandProvider

      @NonNull public @NonNull CommandProvider commandProvider()
      Gets the command provider that was used to register the executed command.
      Returns:
      the command provider instance.