mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
setCancelled
from Cancellable
(#3685)
* 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.
A highly customisable, open source server software for Minecraft: Bedrock Edition written in PHP
Getting started
Discussion/Help
For developers
- Building and running from source
- Latest API documentation - Doxygen documentation generated from development
- DevTools - Development tools plugin for creating plugins
- ExamplePlugin - Example plugin demonstrating some basic API features
- Contributing Guidelines
Donate
- Bitcoin Cash (BCH):
qq3r46hn6ljnhnqnfwxt5pg3g447eq9jhvw5ddfear
- Bitcoin (BTC):
171u8K9e4FtU6j3e5sqNoxKUgEw9qWQdRV
- Stellar Lumens (XLM):
GAAC5WZ33HCTE3BFJFZJXONMEIBNHFLBXM2HJVAZHXXPYA3HP5XPPS7T
- Patreon
Licensing information
This project is licensed under LGPL-3.0. Please see the LICENSE file for details.
pmmp/PocketMine are not affiliated with Mojang. All brands and trademarks belong to their respective owners. PocketMine-MP is not a Mojang-approved software, nor is it associated with Mojang.
Description
Languages
PHP
99.9%