PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\plugin\Plugin Interface Reference
+ Inheritance diagram for pocketmine\plugin\Plugin:
+ Collaboration diagram for pocketmine\plugin\Plugin:

Public Member Functions

 __construct (PluginLoader $loader, Server $server, PluginDescription $description, string $dataFolder, string $file, ResourceProvider $resourceProvider)
 
 getDataFolder ()
 
 getDescription ()
 
 getLogger ()
 
 getName ()
 
 getPluginLoader ()
 
 getScheduler ()
 
 isEnabled ()
 
 onEnableStateChange (bool $enabled)
 

Detailed Description

It is recommended to use PluginBase for the actual plugin

Definition at line 35 of file Plugin.php.

Member Function Documentation

◆ getDataFolder()

pocketmine\plugin\Plugin::getDataFolder ( )

Gets the plugin's data folder to save files and configuration. This directory name has a trailing slash.

Implemented in pocketmine\plugin\PluginBase.

◆ onEnableStateChange()

pocketmine\plugin\Plugin::onEnableStateChange ( bool $enabled)

Called by the plugin manager when the plugin is enabled or disabled to inform the plugin of its enabled state.

Implemented in pocketmine\plugin\PluginBase.


The documentation for this interface was generated from the following file: