mirror of
https://github.com/Matthww/PlayerInfo.git
synced 2025-11-12 17:52:41 +00:00
Compare commits
15 Commits
master
...
55e3a9df9e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55e3a9df9e | ||
|
|
94cab0f223 | ||
|
|
8e659424cd | ||
|
|
7ac9fd5280 | ||
|
|
b805123b10 | ||
|
|
a3d19b77c8 | ||
|
|
4b4e8bcc18 | ||
|
|
f86a7c5e44 | ||
|
|
2b82d564eb | ||
|
|
cc7e6c74af | ||
|
|
39bf52ed79 | ||
|
|
af1162e256 | ||
|
|
4c1e026fc9 | ||
|
|
0c7827e18c | ||
|
|
2743b944a6 |
@@ -8,7 +8,7 @@ We also have a shorter command:\
|
||||
`/pinfo <player>`
|
||||
|
||||
#### Permission:
|
||||
`playerinfo.use` - Allows the user/player to use the command `/playerinfo`
|
||||
`playerinfo.use` - Allows operator to use the command `/playerinfo`
|
||||
|
||||
#### Example:
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@ commands:
|
||||
permissions:
|
||||
playerinfo.use:
|
||||
default: op
|
||||
description: "Allows the user/player to execute the playerinfo command"
|
||||
description: "Allows operator to execute the playerinfo command"
|
||||
|
||||
@@ -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