mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
show error in console if information about the phar plugin was not found
This commit is contained in:
parent
187a2d0805
commit
92e1411ed3
1 changed files with 4 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ class PluginAPI extends stdClass{
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(count($pluginInfo) == 0){
|
||||
ConsoleAPI::error("Failed to load PHAR plugin from $file: pluginInfo has no information(PHAR was made for PMMP 1.4+?)");
|
||||
continue;
|
||||
}
|
||||
console("[INFO] Loading PHAR plugin \"".FORMAT_GREEN.$pluginInfo["name"].FORMAT_RESET."\" ".FORMAT_AQUA.$pluginInfo["version"].FORMAT_RESET." by ".FORMAT_AQUA.$pluginInfo["author"].FORMAT_RESET);
|
||||
|
||||
$aver = CURRENT_API_VERSION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue