mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Fixed plugin loaders trying to load plugins they aren't able to load
closes #2125 This is an API break for things implementing the PluginLoader interface.
This commit is contained in:
@ -210,6 +210,9 @@ class PluginManager{
|
||||
continue;
|
||||
}
|
||||
$file = $directory . $file;
|
||||
if(!$loader->canLoadPlugin($file)){
|
||||
continue;
|
||||
}
|
||||
try{
|
||||
$description = $loader->getPluginDescription($file);
|
||||
if($description instanceof PluginDescription){
|
||||
|
Reference in New Issue
Block a user