Plugin
in
It is recommended to use PluginBase for the actual plugin
Table of Contents
- __construct() : mixed
- getDataFolder() : string
- Gets the plugin's data folder to save files and configuration.
- getDescription() : PluginDescription
- getLogger() : AttachableLogger
- getName() : string
- getPluginLoader() : PluginLoader
- getScheduler() : TaskScheduler
- isEnabled() : bool
Methods
__construct()
public
__construct(PluginLoader $loader, Server $server, PluginDescription $description, string $dataFolder, string $file, ResourceProvider $resourceProvider) : mixed
Parameters
- $loader : PluginLoader
- $server : Server
- $description : PluginDescription
- $dataFolder : string
- $file : string
- $resourceProvider : ResourceProvider
Return values
mixed —getDataFolder()
Gets the plugin's data folder to save files and configuration.
public
getDataFolder() : string
This directory name has a trailing slash.
Return values
string —getDescription()
public
getDescription() : PluginDescription
Return values
PluginDescription —getLogger()
public
getLogger() : AttachableLogger
Return values
AttachableLogger —getName()
public
getName() : string
Return values
string —getPluginLoader()
public
getPluginLoader() : PluginLoader
Return values
PluginLoader —getScheduler()
public
getScheduler() : TaskScheduler
Return values
TaskScheduler —isEnabled()
public
isEnabled() : bool