PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\plugin\PluginManager Class Reference
+ Collaboration diagram for pocketmine\plugin\PluginManager:

Public Member Functions

 __construct (Server $server, SimpleCommandMap $commandMap)
 
 getPlugin ($name)
 
 registerInterface ($loaderName)
 
 getPlugins ()
 
 loadPlugin ($path, $loaders=null)
 
 loadPlugins ($directory, $newLoaders=null)
 
 getPermission ($name)
 
 addPermission (Permission $permission)
 
 removePermission ($permission)
 
 getDefaultPermissions ($op)
 
 recalculatePermissionDefaults (Permission $permission)
 
 subscribeToPermission ($permission, Permissible $permissible)
 
 unsubscribeFromPermission ($permission, Permissible $permissible)
 
 subscribeToDefaultPerms ($op, Permissible $permissible)
 
 unsubscribeFromDefaultPerms ($op, Permissible $permissible)
 
 getPermissions ()
 
 isPluginEnabled (Plugin $plugin)
 
 enablePlugin (Plugin $plugin)
 
 disablePlugins ()
 
 disablePlugin (Plugin $plugin)
 
 clearPlugins ()
 
 callEvent (Event $event)
 
 registerEvents (Listener $listener, Plugin $plugin)
 
 registerEvent ($event, Listener $listener, $priority, EventExecutor $executor, Plugin $plugin, $ignoreCancelled=false)
 
 useTimings ()
 
 setUseTimings ($use)
 

Static Public Attributes

static $pluginParentTimer
 
static $useTimings = false
 

Protected Member Functions

 parseYamlCommands (Plugin $plugin)
 

Protected Attributes

 $plugins = []
 
 $permissions = []
 
 $defaultPerms = []
 
 $defaultPermsOp = []
 
 $permSubs = []
 
 $defSubs = []
 
 $defSubsOp = []
 
 $fileAssociations = []
 

Detailed Description

Manages all the plugins, Permissions and Permissibles

Definition at line 42 of file PluginManager.php.

Constructor & Destructor Documentation

pocketmine\plugin\PluginManager::__construct ( Server  $server,
SimpleCommandMap  $commandMap 
)
Parameters
Server$server
SimpleCommandMap$commandMap

Definition at line 99 of file PluginManager.php.

Member Function Documentation

pocketmine\plugin\PluginManager::addPermission ( Permission  $permission)
Parameters
Permission$permission
Returns
bool

Definition at line 355 of file PluginManager.php.

References pocketmine\permission\Permission\getName().

Referenced by pocketmine\plugin\PluginManager\enablePlugin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\plugin\PluginManager::callEvent ( Event  $event)

Calls an event

Parameters
Event$event

Definition at line 662 of file PluginManager.php.

References pocketmine\event\Event\getEventName(), and pocketmine\event\Event\getHandlers().

+ Here is the call graph for this function:

pocketmine\plugin\PluginManager::disablePlugin ( Plugin  $plugin)
Parameters
Plugin$plugin

Definition at line 629 of file PluginManager.php.

References pocketmine\plugin\Plugin\getDescription(), pocketmine\Server\getInstance(), pocketmine\plugin\Plugin\getPluginLoader(), pocketmine\plugin\PluginManager\removePermission(), and pocketmine\event\HandlerList\unregisterAll().

Referenced by pocketmine\plugin\PluginManager\enablePlugin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\plugin\PluginManager::enablePlugin ( Plugin  $plugin)
Parameters
Plugin$plugin

Definition at line 552 of file PluginManager.php.

References pocketmine\plugin\PluginManager\addPermission(), pocketmine\plugin\PluginManager\disablePlugin(), pocketmine\plugin\Plugin\getDescription(), pocketmine\Server\getInstance(), and pocketmine\plugin\Plugin\getPluginLoader().

+ Here is the call graph for this function:

pocketmine\plugin\PluginManager::getDefaultPermissions (   $op)
Parameters
boolean$op
Returns
Permission[]

Definition at line 382 of file PluginManager.php.

pocketmine\plugin\PluginManager::getPermission (   $name)
Parameters
string$name
Returns
null|Permission

Definition at line 342 of file PluginManager.php.

pocketmine\plugin\PluginManager::getPermissions ( )
Returns
Permission[]

Definition at line 532 of file PluginManager.php.

pocketmine\plugin\PluginManager::getPlugin (   $name)
Parameters
string$name
Returns
null|Plugin

Definition at line 109 of file PluginManager.php.

Referenced by pocketmine\plugin\PluginManager\loadPlugins().

+ Here is the caller graph for this function:

pocketmine\plugin\PluginManager::getPlugins ( )
Returns
Plugin[]

Definition at line 137 of file PluginManager.php.

pocketmine\plugin\PluginManager::isPluginEnabled ( Plugin  $plugin)
Parameters
Plugin$plugin
Returns
bool

Definition at line 541 of file PluginManager.php.

References pocketmine\plugin\Plugin\getDescription().

+ Here is the call graph for this function:

pocketmine\plugin\PluginManager::loadPlugin (   $path,
  $loaders = null 
)
Parameters
string$path
PluginLoader[]$loaders
Returns
Plugin

Definition at line 147 of file PluginManager.php.

References pocketmine\plugin\PluginManager\parseYamlCommands().

Referenced by pocketmine\plugin\PluginManager\loadPlugins().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\plugin\PluginManager::loadPlugins (   $directory,
  $newLoaders = null 
)
Parameters
string$directory
array$newLoaders
Returns
Plugin[]

Definition at line 176 of file PluginManager.php.

References pocketmine\plugin\PluginManager\getPlugin(), and pocketmine\plugin\PluginManager\loadPlugin().

+ Here is the call graph for this function:

pocketmine\plugin\PluginManager::parseYamlCommands ( Plugin  $plugin)
protected
Parameters
Plugin$plugin
Returns
PluginCommand[]

Definition at line 574 of file PluginManager.php.

References pocketmine\plugin\Plugin\getDescription().

Referenced by pocketmine\plugin\PluginManager\loadPlugin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\plugin\PluginManager::recalculatePermissionDefaults ( Permission  $permission)
Parameters
Permission$permission

Definition at line 393 of file PluginManager.php.

References pocketmine\permission\Permission\getName().

+ Here is the call graph for this function:

pocketmine\plugin\PluginManager::registerEvent (   $event,
Listener  $listener,
  $priority,
EventExecutor  $executor,
Plugin  $plugin,
  $ignoreCancelled = false 
)
Parameters
string$eventClass name that extends Event
Listener$listener
int$priority
EventExecutor$executor
Plugin$plugin
bool$ignoreCancelled
Exceptions
PluginException

Definition at line 735 of file PluginManager.php.

References pocketmine\plugin\Plugin\getDescription().

Referenced by pocketmine\plugin\PluginManager\registerEvents().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\plugin\PluginManager::registerEvents ( Listener  $listener,
Plugin  $plugin 
)

Registers all the events in the given Listener class

Parameters
Listener$listener
Plugin$plugin
Exceptions
PluginException

Definition at line 687 of file PluginManager.php.

References pocketmine\event\EventPriority\NORMAL, and pocketmine\plugin\PluginManager\registerEvent().

+ Here is the call graph for this function:

pocketmine\plugin\PluginManager::registerInterface (   $loaderName)
Parameters
string$loaderNameA PluginLoader class name
Returns
boolean

Definition at line 122 of file PluginManager.php.

pocketmine\plugin\PluginManager::removePermission (   $permission)
Parameters
string | Permission$permission

Definition at line 369 of file PluginManager.php.

Referenced by pocketmine\plugin\PluginManager\disablePlugin().

+ Here is the caller graph for this function:

pocketmine\plugin\PluginManager::setUseTimings (   $use)
Parameters
bool$use

Definition at line 772 of file PluginManager.php.

pocketmine\plugin\PluginManager::subscribeToDefaultPerms (   $op,
Permissible  $permissible 
)
Parameters
boolean$op
Permissible$permissible

Definition at line 478 of file PluginManager.php.

pocketmine\plugin\PluginManager::subscribeToPermission (   $permission,
Permissible  $permissible 
)
Parameters
string$permission
Permissible$permissible

Definition at line 431 of file PluginManager.php.

pocketmine\plugin\PluginManager::unsubscribeFromDefaultPerms (   $op,
Permissible  $permissible 
)
Parameters
boolean$op
Permissible$permissible

Definition at line 490 of file PluginManager.php.

pocketmine\plugin\PluginManager::unsubscribeFromPermission (   $permission,
Permissible  $permissible 
)
Parameters
string$permission
Permissible$permissible

Definition at line 442 of file PluginManager.php.

pocketmine\plugin\PluginManager::useTimings ( )
Returns
bool

Definition at line 765 of file PluginManager.php.


The documentation for this class was generated from the following file: