![Function API](https://media.forgecdn.net/avatars/thumbnails/225/971/256/256/637042619739144499.png)
Event cancellation
Frontrider opened this issue ยท 0 comments
Is your feature request related to a problem? Please describe.
All events are sent to a separate worker, preventing them from lagging the game, but also from affecting execution.
Describe the solution you'd like
A way to cancel events. Add a boolean to the class that is sent to the events, called cancel
, when it's set to false, then prevent further execution of behaviors, even vanilla java code.
Additional context
Commands should be able to use event cancel
, on event's postfixed with something like _before
.