mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 07:54:19 +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:
parent
d9b548bfde
commit
52ce8ad8ae
@ -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`
|
||||
|
@ -47,8 +47,6 @@ interface Plugin{
|
||||
*/
|
||||
public function onEnableStateChange(bool $enabled) : void;
|
||||
|
||||
public function isDisabled() : bool;
|
||||
|
||||
/**
|
||||
* Gets the plugin's data folder to save files and configuration.
|
||||
* This directory name has a trailing slash.
|
||||
@ -57,8 +55,6 @@ interface Plugin{
|
||||
|
||||
public function getDescription() : PluginDescription;
|
||||
|
||||
public function getServer() : Server;
|
||||
|
||||
public function getName() : string;
|
||||
|
||||
public function getLogger() : \AttachableLogger;
|
||||
|
Loading…
x
Reference in New Issue
Block a user