Manages all the plugins
Definition at line 71 of file PluginManager.php.
◆ __construct()
pocketmine\plugin\PluginManager::__construct |
( |
private Server | $server, |
|
|
private ?string | $pluginDataDirectory, |
|
|
private ?PluginGraylist | $graylist = null ) |
◆ clearPlugins()
pocketmine\plugin\PluginManager::clearPlugins |
( |
| ) |
|
◆ disablePlugin()
pocketmine\plugin\PluginManager::disablePlugin |
( |
Plugin | $plugin | ) |
|
◆ disablePlugins()
pocketmine\plugin\PluginManager::disablePlugins |
( |
| ) |
|
◆ enablePlugin()
pocketmine\plugin\PluginManager::enablePlugin |
( |
Plugin | $plugin | ) |
|
◆ getPlugin()
pocketmine\plugin\PluginManager::getPlugin |
( |
string | $name | ) |
|
◆ getPlugins()
pocketmine\plugin\PluginManager::getPlugins |
( |
| ) |
|
◆ isPluginEnabled()
pocketmine\plugin\PluginManager::isPluginEnabled |
( |
Plugin | $plugin | ) |
|
◆ loadPlugins()
pocketmine\plugin\PluginManager::loadPlugins |
( |
string | $path, |
|
|
int & | $loadErrorCount = 0 ) |
◆ registerEvent()
pocketmine\plugin\PluginManager::registerEvent |
( |
string | $event, |
|
|
\Closure | $handler, |
|
|
int | $priority, |
|
|
Plugin | $plugin, |
|
|
bool | $handleCancelled = false ) |
- Parameters
-
string | $event | Class name that extends Event |
@phpstan-template TEvent of Event @phpstan-param class-string<TEvent> $event @phpstan-param \Closure(TEvent) : void $handler
- Exceptions
-
ReflectionException
Definition at line 646 of file PluginManager.php.
◆ registerEvents()
pocketmine\plugin\PluginManager::registerEvents |
( |
Listener | $listener, |
|
|
Plugin | $plugin ) |
Registers all the events in the given Listener class
- Exceptions
-
Definition at line 591 of file PluginManager.php.
◆ registerInterface()
pocketmine\plugin\PluginManager::registerInterface |
( |
PluginLoader | $loader | ) |
|
◆ tickSchedulers()
pocketmine\plugin\PluginManager::tickSchedulers |
( |
int | $currentTick | ) |
|
◆ $enabledPlugins
array pocketmine\plugin\PluginManager::$enabledPlugins = [] |
|
protected |
◆ $fileAssociations
array pocketmine\plugin\PluginManager::$fileAssociations = [] |
|
protected |
◆ $plugins
array pocketmine\plugin\PluginManager::$plugins = [] |
|
protected |
The documentation for this class was generated from the following file: