public final class PlayerCommandEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerCommandEvent(Player player,
java.lang.String command) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommand()
Gets the command the player has entered.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic PlayerCommandEvent(Player player, java.lang.String command)
public java.lang.String getCommand()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.