PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\plugin\ScriptPluginLoader Class Reference
+ Inheritance diagram for pocketmine\plugin\ScriptPluginLoader:
+ Collaboration diagram for pocketmine\plugin\ScriptPluginLoader:

Public Member Functions

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

Detailed Description

Simple script loader, not for plugin development For an example see https://gist.github.com/shoghicp/516105d470cf7d140757

Definition at line 40 of file ScriptPluginLoader.php.

Member Function Documentation

◆ canLoadPlugin()

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

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

Implements pocketmine\plugin\PluginLoader.

Definition at line 42 of file ScriptPluginLoader.php.

◆ getAccessProtocol()

pocketmine\plugin\ScriptPluginLoader::getAccessProtocol ( )

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

Implements pocketmine\plugin\PluginLoader.

Definition at line 89 of file ScriptPluginLoader.php.

◆ getPluginDescription()

pocketmine\plugin\ScriptPluginLoader::getPluginDescription ( string $file)

Gets the PluginDescription from the file

Implements pocketmine\plugin\PluginLoader.

Definition at line 56 of file ScriptPluginLoader.php.

◆ loadPlugin()

pocketmine\plugin\ScriptPluginLoader::loadPlugin ( string $file)

Loads the plugin contained in $file

Implements pocketmine\plugin\PluginLoader.

Definition at line 49 of file ScriptPluginLoader.php.


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