public class LapisCoreCancellableEvent extends LapisCoreEvent implements org.bukkit.event.Cancellable
handlers| Constructor and Description |
|---|
LapisCoreCancellableEvent() |
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
Get the reason from
setCancelled(boolean, String) |
boolean |
isCancelled()
Check if the event is cancelled
|
void |
setCancelled(boolean cancel)
Deprecated.
|
void |
setCancelled(boolean cancel,
String reason)
Cancel the event with a reason
|
getHandlerList, getHandlerspublic boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellable@Deprecated public void setCancelled(boolean cancel)
setCancelled(boolean, String) to provide a reason for why you are cancelling the eventsetCancelled in interface org.bukkit.event.Cancellablecancel - The boolean value for the cancelled state of the eventpublic void setCancelled(boolean cancel,
String reason)
cancel - True if the event should be cancelledreason - The reason to be sent to the player as to why the event was cancelled, Not all plugins implement thispublic String getReason()
setCancelled(boolean, String)Copyright © 2019. All rights reserved.