From b227d937870050815ce0be6281fa08eafc5ebc33 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Wed, 30 Aug 2023 08:24:23 +0300 Subject: [PATCH] e --- src/API/PluginAPI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index 808a3a26..04d65d53 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -148,7 +148,8 @@ class PluginAPI extends stdClass{ $aver = CURRENT_API_VERSION; if(!in_array((string) CURRENT_API_VERSION, $pluginInfo["api"])){ - $s = implode(", ", $pluginInfo["api"]); + if(is_array($pluginInfo)) $s = implode(",",$pluginInfo["api"]); + else $s = $pluginInfo["api"]; console("[WARNING] API is not the same as Core, might cause bugs({$s} != {$aver})"); }