PocketMine
|
Public Member Functions | |
onLoad () | |
onEnable () | |
isEnabled () | |
onDisable () | |
isDisabled () | |
getDataFolder () | |
getDescription () | |
getResource ($filename) | |
saveResource ($filename, $replace=false) | |
getResources () | |
getConfig () | |
saveConfig () | |
saveDefaultConfig () | |
reloadConfig () | |
getServer () | |
getName () | |
getLogger () | |
getPluginLoader () | |
Public Member Functions inherited from CommandExecutor | |
onCommand (CommandSender $sender, Command $command, $label, array $args) | |
It is recommended to use PluginBase for the actual plugin
getConfig | ( | ) |
Implemented in PluginBase.
getDataFolder | ( | ) |
Gets the plugin's data folder to save files and configuration. This directory name has a trailing slash.
Implemented in PluginBase.
getDescription | ( | ) |
Implemented in PluginBase.
getLogger | ( | ) |
Implemented in PluginBase.
getPluginLoader | ( | ) |
Implemented in PluginBase.
getResource | ( | $filename | ) |
getResources | ( | ) |
Returns all the resources incrusted in the plugin
Implemented in PluginBase.
getServer | ( | ) |
Implemented in PluginBase.
onDisable | ( | ) |
Called when the plugin is disabled Use this to free open things and finish actions
Implemented in PluginBase.
onEnable | ( | ) |
Called when the plugin is enabled
Implemented in PluginBase.
onLoad | ( | ) |
Called when the plugin is loaded, before calling onEnable()
Implemented in PluginBase.
saveResource | ( | $filename, | |
$replace = false |
|||
) |
Saves an embedded resource to its relative location in the data folder
string | $filename | |
bool | $replace |
Implemented in PluginBase.