endstone::Cancellable
A type characterizing events that may be cancelled by a plugin or the server.
template <typename EventType>
Bases: EventType
, endstone::ICancellable
Functions:
Name | Description |
---|---|
cancel | Cancel this event. A cancelled event will not be executed in the server, but will still pass to other plugins. |
isCancelled | Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins. |
setCancelled | Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins. |
cancel
void cancel()
Cancel this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
isCancelled
bool isCancelled() override const
Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
Returns:
true if this event is cancelled
setCancelled
void setCancelled(bool cancel) override
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
Parameters:
cancel
true if you wish to cancel this event
Last updated on