mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-30 17:09:47 +00:00
Warning for plugin developers: This is a silent BC break. It won't raise any errors. This alters the default behaviour of event handlers to **not** receive cancelled events by default. It is now required to opt into receiving cancelled events by using the @handleCancelled directive (or the handleCancelled parameter where it's appropriate). The ambiguous @ignoreCancelled directive is now ignored. Ramifications: - The majority of handlers with `if($event->isCancelled()) return;` no longer need such checks. - Handlers with `@ignoreCancelled true` or `@ignoreCancelled` annotations can have them removed. - Handlers which want to receive cancelled events need to use `@handleCancelled`.