Class CommandPreProcessEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.node.event.command.CommandProcessEvent
eu.cloudnetservice.node.event.command.CommandPreProcessEvent
All Implemented Interfaces:
eu.cloudnetservice.driver.event.Cancelable

public final class CommandPreProcessEvent extends CommandProcessEvent implements eu.cloudnetservice.driver.event.Cancelable
This event is called before the actual processing of the given command is done. To cancel the execution of the backing command use cancelled(boolean) and set it to true
  • Field Details

    • cancelled

      private boolean cancelled
  • Constructor Details

  • Method Details

    • cancelled

      public boolean cancelled()
      Specified by:
      cancelled in interface eu.cloudnetservice.driver.event.Cancelable
      Returns:
      if the command execution if cancelled
    • cancelled

      public void cancelled(boolean cancelled)
      Specified by:
      cancelled in interface eu.cloudnetservice.driver.event.Cancelable
      Parameters:
      cancelled - whether this command execution should be cancelled or not.