mirror of
https://github.com/Matthww/PlayerInfo.git
synced 2025-05-13 08:59:21 +00:00
modified: src/Matthww/PlayerInfo/Tasks/FetchModelsTask.php
This commit is contained in:
parent
2743b944a6
commit
0c7827e18c
@ -15,12 +15,12 @@ class FetchModelsTask extends AsyncTask {
|
||||
}
|
||||
|
||||
public function onRun(): void {
|
||||
$result = Internet::getURL("https://playerinfo.hillcraft.net/models.yml?v=" . $this->version);
|
||||
$result = Internet::getURL("https://raw.githubusercontent.com/Matthww/PlayerInfo/master/resources/models.yml");
|
||||
if(!is_string($result)) {
|
||||
$this->setResult(false);
|
||||
return;
|
||||
}
|
||||
file_put_contents($this->path . "models.yml", $result);
|
||||
file_put_contents($this->path. "models.yml", $result);
|
||||
$this->setResult(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user