PHP Class pocketmine\plugin\PluginManager

Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Свойство Type Description
$pluginParentTimer pocketmine\event\TimingsHandler
$useTimings

Protected Properties

Свойство 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[]

Méthodes publiques

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

Méthodes protégées

Méthode Description
parseYamlCommands ( pocketmine\plugin\Plugin $plugin ) : PluginCommand[]

Private Methods

Méthode Description
calculatePermissionDefault ( Permission $permission )
dirtyPermissibles ( boolean $op )
getEventListeners ( $event ) : HandlerList

Method Details

__construct() public méthode

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

addPermission() public méthode

public addPermission ( Permission $permission ) : boolean
$permission pocketmine\permission\Permission
Résultat boolean

callEvent() public méthode

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

clearPlugins() public méthode

public clearPlugins ( )

disablePlugin() public méthode

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

disablePlugins() public méthode

public disablePlugins ( )

enablePlugin() public méthode

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

getDefaultPermSubscriptions() public méthode

public getDefaultPermSubscriptions ( boolean $op ) : pocketmine\permission\Permissible[]
$op boolean
Résultat pocketmine\permission\Permissible[]

getDefaultPermissions() public méthode

public getDefaultPermissions ( boolean $op ) : Permission[]
$op boolean
Résultat pocketmine\permission\Permission[]

getPermission() public méthode

public getPermission ( string $name ) : null | Permission
$name string
Résultat null | pocketmine\permission\Permission

getPermissionSubscriptions() public méthode

public getPermissionSubscriptions ( string $permission ) : pocketmine\permission\Permissible[]
$permission string
Résultat pocketmine\permission\Permissible[]

getPermissions() public méthode

public getPermissions ( ) : Permission[]
Résultat pocketmine\permission\Permission[]

getPlugin() public méthode

public getPlugin ( string $name ) : null | pocketmine\plugin\Plugin
$name string
Résultat null | pocketmine\plugin\Plugin

getPlugins() public méthode

public getPlugins ( ) : pocketmine\plugin\Plugin[]
Résultat pocketmine\plugin\Plugin[]

isPluginEnabled() public méthode

public isPluginEnabled ( pocketmine\plugin\Plugin $plugin ) : boolean
$plugin pocketmine\plugin\Plugin
Résultat boolean

loadPlugin() public méthode

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

loadPlugins() public méthode

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

parseYamlCommands() protected méthode

protected parseYamlCommands ( pocketmine\plugin\Plugin $plugin ) : PluginCommand[]
$plugin pocketmine\plugin\Plugin
Résultat pocketmine\command\PluginCommand[]

recalculatePermissionDefaults() public méthode

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

registerEvent() public méthode

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

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

public registerInterface ( string $loaderName ) : boolean
$loaderName string A PluginLoader class name
Résultat boolean

removePermission() public méthode

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

setUseTimings() public méthode

public setUseTimings ( boolean $use )
$use boolean

subscribeToDefaultPerms() public méthode

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

subscribeToPermission() public méthode

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

unsubscribeFromDefaultPerms() public méthode

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

unsubscribeFromPermission() public méthode

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

useTimings() public méthode

public useTimings ( ) : boolean
Résultat boolean

Property Details

$defSubs protected_oe property

protected Permissible[],pocketmine\permission $defSubs
Résultat pocketmine\permission\Permissible[]

$defSubsOp protected_oe property

protected Permissible[],pocketmine\permission $defSubsOp
Résultat pocketmine\permission\Permissible[]

$defaultPerms protected_oe property

protected Permission[],pocketmine\permission $defaultPerms
Résultat pocketmine\permission\Permission[]

$defaultPermsOp protected_oe property

protected Permission[],pocketmine\permission $defaultPermsOp
Résultat pocketmine\permission\Permission[]

$fileAssociations protected_oe property

protected PluginLoader[],pocketmine\plugin $fileAssociations
Résultat pocketmine\plugin\PluginLoader[]

$permSubs protected_oe property

protected Permissible[][],pocketmine\permission $permSubs
Résultat pocketmine\permission\Permissible[][]

$permissions protected_oe property

protected Permission[],pocketmine\permission $permissions
Résultat pocketmine\permission\Permission[]

$pluginParentTimer public_oe static_oe property

public static TimingsHandler,pocketmine\event $pluginParentTimer
Résultat pocketmine\event\TimingsHandler

$plugins protected_oe property

protected Plugin[],pocketmine\plugin $plugins
Résultat pocketmine\plugin\Plugin[]

$useTimings public_oe static_oe property

public static $useTimings