From 6c41f56a63c0cb75c59c984f34034ad4a457a456 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Wed, 30 Aug 2023 08:24:27 +0300 Subject: [PATCH] f --- 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 14320291..c3f8f0b7 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -149,7 +149,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})"); }