Package top.focess.qq.api.event.command
Class CommandExecutedEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.command.CommandExecutedEvent
-
- All Implemented Interfaces:
Serializable
public class CommandExecutedEvent extends Event
Called after command executed- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandExecutedEvent(Command command, String[] args, IOHandler ioHandler, CommandSender sender, top.focess.command.CommandResult result)Constructs a CommandExecutedEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getArgs()CommandgetCommand()IOHandlergetIoHandler()top.focess.command.CommandResultgetResult()CommandSendergetSender()-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, prevent, setPrevent
-
-
-
-
Constructor Detail
-
CommandExecutedEvent
public CommandExecutedEvent(Command command, @NotNull String[] args, IOHandler ioHandler, CommandSender sender, top.focess.command.CommandResult result)
Constructs a CommandExecutedEvent- Parameters:
command- the executed commandargs- the args of the executorioHandler- the input and output handlersender- the executorresult- the result
-
-
Method Detail
-
getResult
public top.focess.command.CommandResult getResult()
-
getSender
public CommandSender getSender()
-
getArgs
@NotNull public String[] getArgs()
-
getIoHandler
public IOHandler getIoHandler()
-
getCommand
public Command getCommand()
-
-