public class ServerCommandEvent extends Object implements ServerEvent, Cancellable
| Constructor and Description |
|---|
ServerCommandEvent(CommandSender sender,
String command) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand() |
CommandSender |
getSender() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setCommand(String command) |
public ServerCommandEvent(CommandSender sender, String command)
public CommandSender getSender()
public String getCommand()
public void setCommand(String command)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2018 NukkitX. All rights reserved.