diff --git a/src/pocketmine/plugin/Plugin.php b/src/pocketmine/plugin/Plugin.php index cba8b6f16..f6df54b8e 100644 --- a/src/pocketmine/plugin/Plugin.php +++ b/src/pocketmine/plugin/Plugin.php @@ -43,6 +43,12 @@ interface Plugin extends CommandExecutor{ public function isEnabled() : bool; /** + * Called by the plugin manager when the plugin is enabled or disabled to inform the plugin of its enabled state. + * + * @internal This is intended for core use only and should not be used by plugins + * @see PluginManager::enablePlugin() + * @see PluginManager::disablePlugin() + * * @param bool $enabled */ public function setEnabled(bool $enabled = true) : void; diff --git a/src/pocketmine/plugin/PluginBase.php b/src/pocketmine/plugin/PluginBase.php index ef70fe8f1..fd4a91374 100644 --- a/src/pocketmine/plugin/PluginBase.php +++ b/src/pocketmine/plugin/PluginBase.php @@ -102,6 +102,12 @@ abstract class PluginBase implements Plugin{ } /** + * Called by the plugin manager when the plugin is enabled or disabled to inform the plugin of its enabled state. + * + * @internal This is intended for core use only and should not be used by plugins + * @see PluginManager::enablePlugin() + * @see PluginManager::disablePlugin() + * * @param bool $enabled */ final public function setEnabled(bool $enabled = true) : void{