PHP Class pocketmine\plugin\PluginManager

ファイルを表示 Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$pluginParentTimer pocketmine\event\TimingsHandler
$useTimings

Protected Properties

Property Type Description
$defSubs pocketmine\permission\Permissible[]
$defSubsOp pocketmine\permission\Permissible[]
$defaultPerms pocketmine\permission\Permission[]
$defaultPermsOp pocketmine\permission\Permission[]
$fileAssociations pocketmine\plugin\PluginLoader[]
$permSubs pocketmine\permission\Permissible[][]
$permissions pocketmine\permission\Permission[]
$plugins pocketmine\plugin\Plugin[]

Public Methods

Method Description
__construct ( Server $server, SimpleCommandMap $commandMap )
addPermission ( Permission $permission ) : boolean
callEvent ( Event $event ) Calls an event
clearPlugins ( )
disablePlugin ( pocketmine\plugin\Plugin $plugin )
disablePlugins ( )
enablePlugin ( pocketmine\plugin\Plugin $plugin )
getDefaultPermSubscriptions ( boolean $op ) : pocketmine\permission\Permissible[]
getDefaultPermissions ( boolean $op ) : Permission[]
getPermission ( string $name ) : null | Permission
getPermissionSubscriptions ( string $permission ) : pocketmine\permission\Permissible[]
getPermissions ( ) : Permission[]
getPlugin ( string $name ) : null | pocketmine\plugin\Plugin
getPlugins ( ) : pocketmine\plugin\Plugin[]
isPluginEnabled ( pocketmine\plugin\Plugin $plugin ) : boolean
loadPlugin ( string $path, pocketmine\plugin\PluginLoader[] $loaders = null ) : pocketmine\plugin\Plugin
loadPlugins ( string $directory, array $newLoaders = null ) : pocketmine\plugin\Plugin[]
recalculatePermissionDefaults ( Permission $permission )
registerEvent ( string $event, pocketmine\event\Listener $listener, integer $priority, pocketmine\plugin\EventExecutor $executor, pocketmine\plugin\Plugin $plugin, boolean $ignoreCancelled = false )
registerEvents ( pocketmine\event\Listener $listener, pocketmine\plugin\Plugin $plugin ) Registers all the events in the given Listener class
registerInterface ( string $loaderName ) : boolean
removePermission ( string | Permission $permission )
setUseTimings ( boolean $use )
subscribeToDefaultPerms ( boolean $op, pocketmine\permission\Permissible $permissible )
subscribeToPermission ( string $permission, pocketmine\permission\Permissible $permissible )
unsubscribeFromDefaultPerms ( boolean $op, pocketmine\permission\Permissible $permissible )
unsubscribeFromPermission ( string $permission, pocketmine\permission\Permissible $permissible )
useTimings ( ) : boolean

Protected Methods

Method Description
parseYamlCommands ( pocketmine\plugin\Plugin $plugin ) : PluginCommand[]

Private Methods

Method Description
calculatePermissionDefault ( Permission $permission )
dirtyPermissibles ( boolean $op )
getEventListeners ( $event ) : HandlerList

Method Details

__construct() public method

public __construct ( Server $server, SimpleCommandMap $commandMap )
$server pocketmine\Server
$commandMap pocketmine\command\SimpleCommandMap

addPermission() public method

public addPermission ( Permission $permission ) : boolean
$permission pocketmine\permission\Permission
return boolean

callEvent() public method

Calls an event
public callEvent ( Event $event )
$event pocketmine\event\Event

clearPlugins() public method

public clearPlugins ( )

disablePlugin() public method

public disablePlugin ( pocketmine\plugin\Plugin $plugin )
$plugin pocketmine\plugin\Plugin

disablePlugins() public method

public disablePlugins ( )

enablePlugin() public method

public enablePlugin ( pocketmine\plugin\Plugin $plugin )
$plugin pocketmine\plugin\Plugin

getDefaultPermSubscriptions() public method

public getDefaultPermSubscriptions ( boolean $op ) : pocketmine\permission\Permissible[]
$op boolean
return pocketmine\permission\Permissible[]

getDefaultPermissions() public method

public getDefaultPermissions ( boolean $op ) : Permission[]
$op boolean
return pocketmine\permission\Permission[]

getPermission() public method

public getPermission ( string $name ) : null | Permission
$name string
return null | pocketmine\permission\Permission

getPermissionSubscriptions() public method

public getPermissionSubscriptions ( string $permission ) : pocketmine\permission\Permissible[]
$permission string
return pocketmine\permission\Permissible[]

getPermissions() public method

public getPermissions ( ) : Permission[]
return pocketmine\permission\Permission[]

getPlugin() public method

public getPlugin ( string $name ) : null | pocketmine\plugin\Plugin
$name string
return null | pocketmine\plugin\Plugin

getPlugins() public method

public getPlugins ( ) : pocketmine\plugin\Plugin[]
return pocketmine\plugin\Plugin[]

isPluginEnabled() public method

public isPluginEnabled ( pocketmine\plugin\Plugin $plugin ) : boolean
$plugin pocketmine\plugin\Plugin
return boolean

loadPlugin() public method

public loadPlugin ( string $path, pocketmine\plugin\PluginLoader[] $loaders = null ) : pocketmine\plugin\Plugin
$path string
$loaders pocketmine\plugin\PluginLoader[]
return pocketmine\plugin\Plugin

loadPlugins() public method

public loadPlugins ( string $directory, array $newLoaders = null ) : pocketmine\plugin\Plugin[]
$directory string
$newLoaders array
return pocketmine\plugin\Plugin[]

parseYamlCommands() protected method

protected parseYamlCommands ( pocketmine\plugin\Plugin $plugin ) : PluginCommand[]
$plugin pocketmine\plugin\Plugin
return pocketmine\command\PluginCommand[]

recalculatePermissionDefaults() public method

public recalculatePermissionDefaults ( Permission $permission )
$permission pocketmine\permission\Permission

registerEvent() public method

public registerEvent ( string $event, pocketmine\event\Listener $listener, integer $priority, pocketmine\plugin\EventExecutor $executor, pocketmine\plugin\Plugin $plugin, boolean $ignoreCancelled = false )
$event string Class name that extends Event
$listener pocketmine\event\Listener
$priority integer
$executor pocketmine\plugin\EventExecutor
$plugin pocketmine\plugin\Plugin
$ignoreCancelled boolean

registerEvents() public method

Registers all the events in the given Listener class
public registerEvents ( pocketmine\event\Listener $listener, pocketmine\plugin\Plugin $plugin )
$listener pocketmine\event\Listener
$plugin pocketmine\plugin\Plugin

registerInterface() public method

public registerInterface ( string $loaderName ) : boolean
$loaderName string A PluginLoader class name
return boolean

removePermission() public method

public removePermission ( string | Permission $permission )
$permission string | pocketmine\permission\Permission

setUseTimings() public method

public setUseTimings ( boolean $use )
$use boolean

subscribeToDefaultPerms() public method

public subscribeToDefaultPerms ( boolean $op, pocketmine\permission\Permissible $permissible )
$op boolean
$permissible pocketmine\permission\Permissible

subscribeToPermission() public method

public subscribeToPermission ( string $permission, pocketmine\permission\Permissible $permissible )
$permission string
$permissible pocketmine\permission\Permissible

unsubscribeFromDefaultPerms() public method

public unsubscribeFromDefaultPerms ( boolean $op, pocketmine\permission\Permissible $permissible )
$op boolean
$permissible pocketmine\permission\Permissible

unsubscribeFromPermission() public method

public unsubscribeFromPermission ( string $permission, pocketmine\permission\Permissible $permissible )
$permission string
$permissible pocketmine\permission\Permissible

useTimings() public method

public useTimings ( ) : boolean
return boolean

Property Details

$defSubs protected_oe property

protected Permissible[],pocketmine\permission $defSubs
return pocketmine\permission\Permissible[]

$defSubsOp protected_oe property

protected Permissible[],pocketmine\permission $defSubsOp
return pocketmine\permission\Permissible[]

$defaultPerms protected_oe property

protected Permission[],pocketmine\permission $defaultPerms
return pocketmine\permission\Permission[]

$defaultPermsOp protected_oe property

protected Permission[],pocketmine\permission $defaultPermsOp
return pocketmine\permission\Permission[]

$fileAssociations protected_oe property

protected PluginLoader[],pocketmine\plugin $fileAssociations
return pocketmine\plugin\PluginLoader[]

$permSubs protected_oe property

protected Permissible[][],pocketmine\permission $permSubs
return pocketmine\permission\Permissible[][]

$permissions protected_oe property

protected Permission[],pocketmine\permission $permissions
return pocketmine\permission\Permission[]

$pluginParentTimer public_oe static_oe property

public static TimingsHandler,pocketmine\event $pluginParentTimer
return pocketmine\event\TimingsHandler

$plugins protected_oe property

protected Plugin[],pocketmine\plugin $plugins
return pocketmine\plugin\Plugin[]

$useTimings public_oe static_oe property

public static $useTimings