mirror of
https://github.com/Matthww/PlayerInfo.git
synced 2025-11-12 17:52:41 +00:00
Compare commits
17 Commits
master
...
a5fd8adc2f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5fd8adc2f | ||
|
|
267ea58c8d | ||
|
|
55e3a9df9e | ||
|
|
94cab0f223 | ||
|
|
8e659424cd | ||
|
|
7ac9fd5280 | ||
|
|
b805123b10 | ||
|
|
a3d19b77c8 | ||
|
|
4b4e8bcc18 | ||
|
|
f86a7c5e44 | ||
|
|
2b82d564eb | ||
|
|
cc7e6c74af | ||
|
|
39bf52ed79 | ||
|
|
af1162e256 | ||
|
|
4c1e026fc9 | ||
|
|
0c7827e18c | ||
|
|
2743b944a6 |
@@ -15,13 +15,13 @@ class FetchModelsTask extends AsyncTask {
|
||||
}
|
||||
|
||||
public function onRun(): void {
|
||||
$result = Internet::getURL("https://raw.githubusercontent.com/Matthww/PlayerInfo/master/resources/models.yml");
|
||||
if(is_null($result)) {
|
||||
$result = Internet::getURL("https://raw.githubusercontent.com/Matthww/PlayerInfo/master/resources/models.yml")->getBody();
|
||||
if(!is_string($result)) {
|
||||
$this->setResult(false);
|
||||
return;
|
||||
}
|
||||
|
||||
file_put_contents($this->path. "models.yml", $result->getBody());
|
||||
file_put_contents($this->path. "models.yml", $result);
|
||||
$this->setResult(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user