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:
Dylan K. Taylor 2021-03-25 19:17:16 +00:00
parent d9b548bfde
commit 52ce8ad8ae
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 2 additions and 4 deletions

View File

@ -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`

View File

@ -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;