From 64d81f99cb72e86b3232592a470f032f1e3406ce Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Wed, 30 Aug 2023 08:20:23 +0300 Subject: [PATCH] a --- src/API/PluginAPI.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index fa054af9..14320291 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -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/";