Skip to content

Plugin ​

interface · pocketmine\plugin\Plugin · source

It is recommended to use PluginBase for the actual plugin

Methods ​

__construct() ​

php
public function __construct(\pocketmine\plugin\PluginLoader $loader, \pocketmine\Server $server, \pocketmine\plugin\PluginDescription $description, string $dataFolder, string $file, \pocketmine\plugin\ResourceProvider $resourceProvider)

getDataFolder() ​

php
public function getDataFolder() : string

Gets the plugin's data folder to save files and configuration. This directory name has a trailing slash.

getDescription() ​

php
public function getDescription() : \pocketmine\plugin\PluginDescription

getLogger() ​

php
public function getLogger() : \AttachableLogger

getName() ​

php
public function getName() : string

getPluginLoader() ​

php
public function getPluginLoader() : \pocketmine\plugin\PluginLoader

getScheduler() ​

php
public function getScheduler() : \pocketmine\scheduler\TaskScheduler

isEnabled() ​

php
public function isEnabled() : bool

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