mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Plugin: removed useless shit
Plugin is the interface by which the server core interacts with plugins, so it should be limited only to the stuff that the server actually uses. These methods are still provided by PluginBase, so in 99.9% of cases there will be no BC break.
This commit is contained in:
@ -665,6 +665,8 @@ This version features substantial changes to the network system, improving coher
|
||||
- `Plugin->onEnable()`: this is now internalized inside `PluginBase`
|
||||
- `Plugin->onDisable()`: same as above
|
||||
- `Plugin->onLoad()`: same as above
|
||||
- `Plugin->getServer()` is no longer required to be implemented. It's implemented in `PluginBase` for convenience.
|
||||
- `Plugin->isDisabled()` was removed (use `Plugin->isEnabled()` instead).
|
||||
- `Plugin` no longer extends `CommandExecutor`. This means that `Plugin` implementations don't need to implement `onCommand()` anymore.
|
||||
- The following hook methods have changed visibility:
|
||||
- `PluginBase->onEnable()` changed from `public` to `protected`
|
||||
|
Reference in New Issue
Block a user