mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Heap of bugfixes, cleanup and PHP 7 upgrades
This commit is contained in:
@ -145,7 +145,7 @@ class PluginManager{
|
||||
* @return Plugin|null
|
||||
*/
|
||||
public function loadPlugin($path, $loaders = null){
|
||||
foreach(($loaders === null ? $this->fileAssociations : $loaders) as $loader){
|
||||
foreach($loaders ?? $this->fileAssociations as $loader){
|
||||
if(preg_match($loader->getPluginFilters(), basename($path)) > 0){
|
||||
$description = $loader->getPluginDescription($path);
|
||||
if($description instanceof PluginDescription){
|
||||
|
Reference in New Issue
Block a user