This commit is contained in:
GameHerobrine 2023-08-30 08:20:23 +03:00
parent f7cccfb2c3
commit 64d81f99cb

View file

@ -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/";