Skip to content

PluginLoader ​

interface · pocketmine\plugin\PluginLoader · source

Handles different types of plugins

Methods ​

canLoadPlugin() ​

php
public function canLoadPlugin(string $path) : bool

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

getAccessProtocol() ​

php
public function getAccessProtocol() : string

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

getPluginDescription() ​

php
public function getPluginDescription(string $file) : ?\pocketmine\plugin\PluginDescription

Gets the PluginDescription from the file

loadPlugin() ​

php
public function loadPlugin(string $file) : void

Loads the plugin contained in $file

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.