Method |
Description |
|
getConfig ( ) : Config |
|
|
getDataFolder ( ) |
Gets the plugin's data folder to save files and configuration |
|
getDescription ( ) : PluginDescription |
|
|
getLogger ( ) : PluginLogger |
|
|
getName ( ) |
|
|
getPluginLoader ( ) : pocketmine\plugin\PluginLoader |
|
|
getResource ( string $filename ) |
Gets an embedded resource in the plugin file. |
|
getResources ( ) |
Returns all the resources incrusted in the plugin |
|
getServer ( ) : Server |
|
|
isDisabled ( ) |
|
|
isEnabled ( ) |
|
|
onDisable ( ) |
Called when the plugin is disabled
Use this to free open things and finish actions |
|
onEnable ( ) |
Called when the plugin is enabled |
|
onLoad ( ) |
Called when the plugin is loaded, before calling onEnable() |
|
reloadConfig ( ) |
|
|
saveConfig ( ) |
|
|
saveDefaultConfig ( ) |
|
|
saveResource ( string $filename, boolean $replace = false ) |
Saves an embedded resource to its relative location in the data folder |
|