PHP Class pocketmine\plugin\PharPluginLoader

Inheritance: implements pocketmine\plugin\PluginLoader
Show file Open project: iTXTech/Genisys

Public Methods

Method Description
__construct ( Server $server )
disablePlugin ( pocketmine\plugin\Plugin $plugin )
enablePlugin ( pocketmine\plugin\Plugin $plugin )
getPluginDescription ( string $file ) : PluginDescription Gets the PluginDescription from the file
getPluginFilters ( ) : array Returns the filename patterns that this loader accepts
loadPlugin ( string $file ) : pocketmine\plugin\Plugin Loads the plugin contained in $file

Private Methods

Method Description
initPlugin ( PluginBase $plugin, PluginDescription $description, string $dataFolder, string $file )

Method Details

__construct() public method

public __construct ( Server $server )
$server pocketmine\Server

disablePlugin() public method

public disablePlugin ( pocketmine\plugin\Plugin $plugin )
$plugin pocketmine\plugin\Plugin

enablePlugin() public method

public enablePlugin ( pocketmine\plugin\Plugin $plugin )
$plugin pocketmine\plugin\Plugin

getPluginDescription() public method

Gets the PluginDescription from the file
public getPluginDescription ( string $file ) : PluginDescription
$file string
return PluginDescription

getPluginFilters() public method

Returns the filename patterns that this loader accepts
public getPluginFilters ( ) : array
return array

loadPlugin() public method

Loads the plugin contained in $file
public loadPlugin ( string $file ) : pocketmine\plugin\Plugin
$file string
return pocketmine\plugin\Plugin