PHP Класс pocketmine\plugin\PluginBase

Наследование: implements pocketmine\plugin\Plugin
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 )

Защищенные методы

Метод Описание
getFile ( )
isPhar ( ) : boolean

Описание методов

getCommand() публичный метод

public getCommand ( string $name ) : Command | pocketmine\command\PluginIdentifiableCommand
$name string
Результат pocketmine\command\Command | pocketmine\command\PluginIdentifiableCommand

getConfig() публичный метод

public getConfig ( ) : Config
Результат pocketmine\utils\Config

getDataFolder() закрытый публичный метод

final public getDataFolder ( )

getDescription() закрытый публичный метод

final public getDescription ( )

getFile() защищенный метод

protected getFile ( )

getFullName() закрытый публичный метод

final public getFullName ( ) : string
Результат string

getLogger() публичный метод

public getLogger ( ) : PluginLogger
Результат PluginLogger

getName() закрытый публичный метод

final public getName ( ) : string
Результат string

getPluginLoader() публичный метод

public getPluginLoader ( ) : pocketmine\plugin\PluginLoader
Результат pocketmine\plugin\PluginLoader

getResource() публичный метод

WARNING: You must close the resource given using fclose()
public getResource ( string $filename ) : resource
$filename string
Результат resource Resource data, or null

getResources() публичный метод

Returns all the resources incrusted on the plugin
public getResources ( ) : string[]
Результат string[]

getServer() закрытый публичный метод

final public getServer ( ) : Server
Результат pocketmine\Server

init() закрытый публичный метод

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 isDisabled ( ) : boolean
Результат boolean

isEnabled() закрытый публичный метод

final public isEnabled ( ) : boolean
Результат boolean

isInitialized() закрытый публичный метод

final public isInitialized ( ) : boolean
Результат boolean

isPhar() защищенный метод

protected isPhar ( ) : boolean
Результат boolean

onCommand() публичный метод

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
Результат boolean

onDisable() публичный метод

public onDisable ( )

onEnable() публичный метод

public onEnable ( )

onLoad() публичный метод

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

reloadConfig() публичный метод

public reloadConfig ( )

saveConfig() публичный метод

public saveConfig ( )

saveDefaultConfig() публичный метод

public saveDefaultConfig ( )

saveResource() публичный метод

public saveResource ( string $filename, boolean $replace = false ) : boolean
$filename string
$replace boolean
Результат boolean

setEnabled() закрытый публичный метод

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