PHP Interface pocketmine\plugin\Plugin

Inheritance: extends pocketmine\command\CommandExecutor
显示文件 Open project: ClearSkyTeam/ClearSky Interface Usage Examples

Public Methods

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

Method Details

getConfig() public method

public getConfig ( ) : Config
return pocketmine\utils\Config

getDataFolder() public method

Gets the plugin's data folder to save files and configuration
public getDataFolder ( )

getDescription() public method

public getDescription ( ) : PluginDescription
return PluginDescription

getLogger() public method

public getLogger ( ) : PluginLogger
return PluginLogger

getName() public method

public getName ( )

getPluginLoader() public method

public getPluginLoader ( ) : pocketmine\plugin\PluginLoader
return pocketmine\plugin\PluginLoader

getResource() public method

Gets an embedded resource in the plugin file.
public getResource ( string $filename )
$filename string

getResources() public method

Returns all the resources incrusted in the plugin
public getResources ( )

getServer() public method

public getServer ( ) : Server
return pocketmine\Server

isDisabled() public method

public isDisabled ( )

isEnabled() public method

public isEnabled ( )

onDisable() public method

Called when the plugin is disabled Use this to free open things and finish actions
public onDisable ( )

onEnable() public method

Called when the plugin is enabled
public onEnable ( )

onLoad() public method

Called when the plugin is loaded, before calling onEnable()
public onLoad ( )

reloadConfig() public method

public reloadConfig ( )

saveConfig() public method

public saveConfig ( )

saveDefaultConfig() public method

public saveDefaultConfig ( )

saveResource() public method

Saves an embedded resource to its relative location in the data folder
public saveResource ( string $filename, boolean $replace = false )
$filename string
$replace boolean