Class CommandEvent

All Implemented Interfaces:
Cancellable

public class CommandEvent extends AbstractCancellable
This class is currently only for internal use. Do not post or catch this event.
  • Constructor Details

    • CommandEvent

      public CommandEvent(Actor actor, String arguments)
      Create a new instance.
      Parameters:
      actor - the player
      arguments - the arguments
    • CommandEvent

      public CommandEvent(Actor actor, String arguments, @Nullable EditSession editSession)
      Create a new instance.
      Parameters:
      actor - the player
      arguments - the arguments
      editSession - the editsession
  • Method Details

    • getSession

      @Nullable public EditSession getSession()
    • getActor

      public Actor getActor()
      Get the actor that issued the command.
      Returns:
      the actor that issued the command
    • getArguments

      public String getArguments()
      Get the arguments.
      Returns:
      the arguments
    • call

      public boolean call()
      Description copied from class: Event
      Returns true if this event was called and not cancelled.
      Overrides:
      call in class Event
      Returns:
      !isCancelled