mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-03 02:22:32 +00:00
* Removed `setCancelled` from `Cancellable` Before anyone screams, THIS CHANGE WILL NOT AFFECT MOST PLUGINS (although it allows future changes to break some). This commit rewrites the documentation of `Cancellable`, clarifying the concept of "cancelled" from the perspective of the event framework. This commit also removes the `setCancelled` method from `Cancellable`. This does not affect plugins using the (originally standard) `setCancelled` method on events directly, since the implementation on classes was not removed. On the other hand, it no longer requires `Cancellable` events to implement this method, allowing flexibility on cancelation conditions, e.g. subclasses may require additional parameters for cancellation without needing to use hacks to check that the user cancelled the event in the correct way.