Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Update EconomyAPI.php #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EconomyAPI/src/onebone/economyapi/EconomyAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\utils\Config;
use pocketmine\utils\Utils;
use pocketmine\utils\Internet;
use pocketmine\utils\TextFormat;

use onebone\economyapi\provider\Provider;
Expand Down Expand Up @@ -388,7 +388,7 @@ public function openProvider(){

private function checkUpdate(){
try{
$info = json_decode(Utils::getURL($this->getConfig()->get("update-host")."?version=".$this->getDescription()->getVersion()."&package_version=".self::PACKAGE_VERSION), true);
$info = json_decode(Internet::getURL($this->getConfig()->get("update-host")."?version=".$this->getDescription()->getVersion()."&package_version=".self::PACKAGE_VERSION), true);
if(!isset($info["status"]) or $info["status"] !== true){
$this->getLogger()->notice("Something went wrong on update server.");
return false;
Expand Down