mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
Fixed #988
This commit is contained in:
parent
02dc06c58b
commit
4d0eb5e529
@ -41,6 +41,10 @@ class PluginAPI extends stdClass{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function load($file){
|
public function load($file){
|
||||||
|
if(is_link($file) or is_dir($file) or !file_exists($file)){
|
||||||
|
console("[ERROR] ".basename($file)." is not a file");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(strtolower(substr($file, -3)) === "pmf"){
|
if(strtolower(substr($file, -3)) === "pmf"){
|
||||||
$pmf = new PMFPlugin($file);
|
$pmf = new PMFPlugin($file);
|
||||||
$info = $pmf->getPluginInfo();
|
$info = $pmf->getPluginInfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user