PHP Interface pocketmine\plugin\Plugin

Inheritance: extends pocketmine\command\CommandExecutor
Afficher le fichier Open project: ClearSkyTeam/ClearSky Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

public getConfig ( ) : Config
Résultat pocketmine\utils\Config

getDataFolder() public méthode

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

getDescription() public méthode

public getDescription ( ) : PluginDescription
Résultat PluginDescription

getLogger() public méthode

public getLogger ( ) : PluginLogger
Résultat PluginLogger

getName() public méthode

public getName ( )

getPluginLoader() public méthode

public getPluginLoader ( ) : pocketmine\plugin\PluginLoader
Résultat pocketmine\plugin\PluginLoader

getResource() public méthode

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

getResources() public méthode

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

getServer() public méthode

public getServer ( ) : Server
Résultat pocketmine\Server

isDisabled() public méthode

public isDisabled ( )

isEnabled() public méthode

public isEnabled ( )

onDisable() public méthode

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

onEnable() public méthode

Called when the plugin is enabled
public onEnable ( )

onLoad() public méthode

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

reloadConfig() public méthode

public reloadConfig ( )

saveConfig() public méthode

public saveConfig ( )

saveDefaultConfig() public méthode

public saveDefaultConfig ( )

saveResource() public méthode

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