mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
a
This commit is contained in:
parent
f7cccfb2c3
commit
64d81f99cb
1 changed files with 3 additions and 2 deletions
|
|
@ -148,8 +148,9 @@ class PluginAPI extends stdClass{
|
|||
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;
|
||||
if(!in_array((string) CURRENT_API_VERSION, $pluginInfo["api"])){
|
||||
console("[WARNING] API is not the same as Core, might cause bugs({$pluginInfo["api"]} != {$aver})");
|
||||
if(!in_array((string) CURRENT_API_VERSION, $pluginInfo["api"])){
|
||||
$s = implode(", ", $pluginInfo["api"]);
|
||||
console("[WARNING] API is not the same as Core, might cause bugs({$s} != {$aver})");
|
||||
}
|
||||
|
||||
$phr = "phar://$filePath/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue