diff --git a/src/DaPigGuy/PiggyFactions/tasks/CheckUpdatesTask.php b/src/DaPigGuy/PiggyFactions/tasks/CheckUpdatesTask.php index 9b824d39..5262186f 100644 --- a/src/DaPigGuy/PiggyFactions/tasks/CheckUpdatesTask.php +++ b/src/DaPigGuy/PiggyFactions/tasks/CheckUpdatesTask.php @@ -29,7 +29,7 @@ public function onCompletion(): void $data = json_decode($results[0], true); if (version_compare($plugin->getDescription()->getVersion(), $data[0]["version"]) === -1) { - if (ApiVersion::isCompatible($plugin->getServer()->getApiVersion(), $data[0]["api"][0]["from"])) { + if (ApiVersion::isCompatible($plugin->getServer()->getApiVersion(), $data[0]["api"][0])) { PiggyFactions::getInstance()->getLogger()->info("PiggyFactions v" . $data[0]["version"] . " is available for download at " . $data[0]["artifact_url"] . "/PiggyFactions.phar"); } }