PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\plugin\PluginLoader Interface Reference
+ Inheritance diagram for pocketmine\plugin\PluginLoader:
+ Collaboration diagram for pocketmine\plugin\PluginLoader:

Public Member Functions

 canLoadPlugin (string $path)
 
 getAccessProtocol ()
 
 getPluginDescription (string $path)
 
 loadPlugin (string $path)
 

Detailed Description

Handles different types of plugins

Definition at line 29 of file PluginLoader.php.

Member Function Documentation

◆ canLoadPlugin()

pocketmine\plugin\PluginLoader::canLoadPlugin ( string $path)

Returns whether this PluginLoader can load the plugin in the given path.

Implemented in pocketmine\plugin\FolderPluginLoader, pocketmine\plugin\PharPluginLoader, and pocketmine\plugin\ScriptPluginLoader.

◆ getAccessProtocol()

pocketmine\plugin\PluginLoader::getAccessProtocol ( )

Returns the protocol prefix used to access files in this plugin, e.g. file://, phar://

Implemented in pocketmine\plugin\FolderPluginLoader, pocketmine\plugin\PharPluginLoader, and pocketmine\plugin\ScriptPluginLoader.

◆ getPluginDescription()

pocketmine\plugin\PluginLoader::getPluginDescription ( string $path)

Gets the PluginDescription from the file

Exceptions
PluginDescriptionParseException

Implemented in pocketmine\plugin\FolderPluginLoader, pocketmine\plugin\PharPluginLoader, and pocketmine\plugin\ScriptPluginLoader.

◆ loadPlugin()

pocketmine\plugin\PluginLoader::loadPlugin ( string $path)

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