mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed #988
This commit is contained in:
parent
02dc06c58b
commit
4d0eb5e529
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,10 @@ class PluginAPI extends stdClass{
|
|||
}
|
||||
|
||||
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"){
|
||||
$pmf = new PMFPlugin($file);
|
||||
$info = $pmf->getPluginInfo();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue