mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
parent
a1c82da2f2
commit
59f3622f69
@ -897,6 +897,9 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
|
||||
- `PluginManager->registerEvent()` now has a simpler signature: `registerEvent(string $event, \Closure $handler, int $priority, Plugin $plugin, bool $handleCancelled = false)`. The provided closure must accept the specified event class as its only parameter. See [Event API changes](#event) for more details.
|
||||
- The following classes have been removed:
|
||||
- `PluginLogger`
|
||||
- The following constants have been removed:
|
||||
- `PluginLoadOrder::STARTUP` - use `PluginEnableOrder::STARTUP()`
|
||||
- `PluginLoadOrder::POSTWORLD` - use `PluginEnableOrder::POSTWORLD()`
|
||||
- The following interface requirements have been removed:
|
||||
- `Plugin->onEnable()`: this is now internalized inside `PluginBase`
|
||||
- `Plugin->onDisable()`: same as above
|
||||
|
Loading…
x
Reference in New Issue
Block a user