From 92e1411ed3a7bcd7121b9c1e81b31f6ec7db9706 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Fri, 18 Jul 2025 17:44:37 +0300 Subject: [PATCH] show error in console if information about the phar plugin was not found --- src/API/PluginAPI.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index 5e98b6ce..100671eb 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -149,6 +149,10 @@ class PluginAPI extends stdClass{ break; } } + if(count($pluginInfo) == 0){ + ConsoleAPI::error("Failed to load PHAR plugin from $file: pluginInfo has no information(PHAR was made for PMMP 1.4+?)"); + continue; + } 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;