public class CommandPrepostEvent extends Event implements Cancellable
| 构造器和说明 |
|---|
CommandPrepostEvent(CommandSender sender,
Command command,
String[] args,
IOHandler ioHandler)
Constructs a CommandPrepostEvent
|
| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
getArgs() |
Command |
getCommand() |
IOHandler |
getIoHandler() |
CommandSender |
getSender() |
boolean |
isCancelled()
Indicate this event is cancelled
|
void |
setCancelled(boolean cancelled)
Set whether this event is cancelled or not
|
isPrevent, setPreventpublic CommandPrepostEvent(CommandSender sender, Command command, String[] args, IOHandler ioHandler)
sender - the executorcommand - the Commandargs - the data of this executorioHandler - the input and output handlerpublic boolean isCancelled()
CancellableisCancelled 在接口中 Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled 在接口中 Cancellablecancelled - whether this event is cancelled or notpublic String[] getArgs()
public IOHandler getIoHandler()
public CommandSender getSender()
public Command getCommand()
Copyright © 2022. All rights reserved.