public class PlayerLeaveAreaEvent extends PlayerEvent implements Cancellable
AreaArea| Constructor and Description |
|---|
PlayerLeaveAreaEvent(Player player,
Area area) |
| Modifier and Type | Method and Description |
|---|---|
Area |
getArea()
Gets the
Area the player has left. |
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Area getArea()
Area the player has left.Area.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.