PocketMine-MP 5.37.2 git-e507eb5e50da3ead3ae88ed2324df21e75820019
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 $path)
 
 loadPlugin (string $path, PluginDescription $description)
 

Public Attributes

const AUTOGENERATED_NAME_PREFIX = "ScriptPlugin_"
 

Detailed Description

See also
examples/plugins/ExampleScriptPlugin.php

Definition at line 41 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 45 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 94 of file ScriptPluginLoader.php.

◆ getPluginDescription()

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

Gets the PluginDescription from the file

Implements pocketmine\plugin\PluginLoader.

Definition at line 59 of file ScriptPluginLoader.php.

◆ loadPlugin()

pocketmine\plugin\ScriptPluginLoader::loadPlugin ( string $path,
PluginDescription $description )

Loads the plugin contained in $file

Implements pocketmine\plugin\PluginLoader.

Definition at line 52 of file ScriptPluginLoader.php.

Member Data Documentation

◆ AUTOGENERATED_NAME_PREFIX

const pocketmine\plugin\ScriptPluginLoader::AUTOGENERATED_NAME_PREFIX = "ScriptPlugin_"

Definition at line 43 of file ScriptPluginLoader.php.


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