Skip to content

PharPluginLoader ​

class · pocketmine\plugin\PharPluginLoader · source

Implements PluginLoader

Handles different types of plugins

Methods ​

__construct() ​

php
public function __construct(\pocketmine\thread\ThreadSafeClassLoader $loader)

canLoadPlugin() ​

php
public function canLoadPlugin(string $path) : bool

getAccessProtocol() ​

php
public function getAccessProtocol() : string

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.