Class CommandPrepostEvent

    • Constructor Detail

      • CommandPrepostEvent

        public CommandPrepostEvent​(CommandSender sender,
                                   Command command,
                                   String[] args,
                                   IOHandler ioHandler)
        Constructs a CommandPrepostEvent
        Parameters:
        sender - the executor
        command - the command
        args - the data of this executor
        ioHandler - the input and output handler
    • Method Detail

      • isCancelled

        public boolean isCancelled()
        Description copied from interface: Cancellable
        Indicate this event is cancelled
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        true if this event is cancelled, false otherwise
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Description copied from interface: Cancellable
        Set whether this event is cancelled or not
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancelled - true if cancel this event, false not cancel this event
      • getArgs

        public String[] getArgs()
      • getIoHandler

        public IOHandler getIoHandler()
      • getCommand

        public Command getCommand()