PHP Class pocketmine\plugin\PluginBase

Inheritance: implements pocketmine\plugin\Plugin
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Méthode Description
getCommand ( string $name ) : Command | pocketmine\command\PluginIdentifiableCommand
getConfig ( ) : Config
getDataFolder ( )
getDescription ( )
getFullName ( ) : string
getLogger ( ) : PluginLogger
getName ( ) : string
getPluginLoader ( ) : pocketmine\plugin\PluginLoader
getResource ( string $filename ) : resource Gets an embedded resource on the plugin file.
getResources ( ) : string[] Returns all the resources incrusted on the plugin
getServer ( ) : Server
init ( pocketmine\plugin\PluginLoader $loader, Server $server, PluginDescription $description, $dataFolder, $file )
isDisabled ( ) : boolean
isEnabled ( ) : boolean
isInitialized ( ) : boolean
onCommand ( pocketmine\command\CommandSender $sender, Command $command, string $label, array $args ) : boolean
onDisable ( )
onEnable ( )
onLoad ( ) Called when the plugin is loaded, before calling onEnable()
reloadConfig ( )
saveConfig ( )
saveDefaultConfig ( )
saveResource ( string $filename, boolean $replace = false ) : boolean
setEnabled ( boolean $boolean = true )

Méthodes protégées

Méthode Description
getFile ( )
isPhar ( ) : boolean

Method Details

getCommand() public méthode

public getCommand ( string $name ) : Command | pocketmine\command\PluginIdentifiableCommand
$name string
Résultat pocketmine\command\Command | pocketmine\command\PluginIdentifiableCommand

getConfig() public méthode

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

getDataFolder() final public méthode

final public getDataFolder ( )

getDescription() final public méthode

final public getDescription ( )

getFile() protected méthode

protected getFile ( )

getFullName() final public méthode

final public getFullName ( ) : string
Résultat string

getLogger() public méthode

public getLogger ( ) : PluginLogger
Résultat PluginLogger

getName() final public méthode

final public getName ( ) : string
Résultat string

getPluginLoader() public méthode

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

getResource() public méthode

WARNING: You must close the resource given using fclose()
public getResource ( string $filename ) : resource
$filename string
Résultat resource Resource data, or null

getResources() public méthode

Returns all the resources incrusted on the plugin
public getResources ( ) : string[]
Résultat string[]

getServer() final public méthode

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

init() final public méthode

final public init ( pocketmine\plugin\PluginLoader $loader, Server $server, PluginDescription $description, $dataFolder, $file )
$loader pocketmine\plugin\PluginLoader
$server pocketmine\Server
$description PluginDescription

isDisabled() final public méthode

final public isDisabled ( ) : boolean
Résultat boolean

isEnabled() final public méthode

final public isEnabled ( ) : boolean
Résultat boolean

isInitialized() final public méthode

final public isInitialized ( ) : boolean
Résultat boolean

isPhar() protected méthode

protected isPhar ( ) : boolean
Résultat boolean

onCommand() public méthode

public onCommand ( pocketmine\command\CommandSender $sender, Command $command, string $label, array $args ) : boolean
$sender pocketmine\command\CommandSender
$command pocketmine\command\Command
$label string
$args array
Résultat boolean

onDisable() public méthode

public onDisable ( )

onEnable() public méthode

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

public saveResource ( string $filename, boolean $replace = false ) : boolean
$filename string
$replace boolean
Résultat boolean

setEnabled() final public méthode

final public setEnabled ( boolean $boolean = true )
$boolean boolean