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.Executor executor, String[] args, IOHandler ioHandler, CommandSender sender, CommandResult result)Constructs a CommandExecutedEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getArgs()Command.ExecutorgetExecutor()IOHandlergetIoHandler()CommandResultgetResult()CommandSendergetSender()-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
CommandExecutedEvent
public CommandExecutedEvent(Command.Executor executor, @NotNull String[] args, IOHandler ioHandler, CommandSender sender, CommandResult result)
Constructs a CommandExecutedEvent- Parameters:
executor- the Executorargs- the args of the executorioHandler- the input and output handlersender- the executorresult- the result
-
-
Method Detail
-
getResult
public CommandResult getResult()
-
getSender
public CommandSender getSender()
-
getExecutor
public Command.Executor getExecutor()
-
getArgs
@NotNull public String[] getArgs()
-
getIoHandler
public IOHandler getIoHandler()
-
-