mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
Add the property
This commit is contained in:
parent
c8a0315c52
commit
22d7f856d8
@ -99,6 +99,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
|||||||
if($this->getProperty("update-channel") == "dev" or $this->getProperty("update-channel") == "development"){
|
if($this->getProperty("update-channel") == "dev" or $this->getProperty("update-channel") == "development"){
|
||||||
$channel = "dev";
|
$channel = "dev";
|
||||||
}
|
}
|
||||||
|
$this->setProperty("update-channel", $channel);
|
||||||
|
|
||||||
if($channel === "dev"){
|
if($channel === "dev"){
|
||||||
$info = json_decode(Utils::curl_get("https://api.github.com/repos/shoghicp/PocketMine-MP"), true);
|
$info = json_decode(Utils::curl_get("https://api.github.com/repos/shoghicp/PocketMine-MP"), true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user