Skip to content

Commit

Permalink
Release 0.0.7-BETA
Browse files Browse the repository at this point in the history
  • Loading branch information
xqwtxon committed Feb 24, 2023
1 parent 5ee386c commit a2ca57a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: ProfanityFilter
version: 0.0.6-BETA
version: 0.0.7-BETA
main: ReinfyTeam\ProfanityFilter\Loader
api: 4.0.0
src-namespace-prefix: ReinfyTeam\ProfanityFilter
Expand Down
8 changes: 6 additions & 2 deletions src/Tasks/UpdateTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public function onRun() : void {
$api = "";
if ($json !== null) {
$releases = json_decode($json->getBody(), true);
if($releases === null) return; // Issue Fix: https://github.com/ReinfyTeam/ProfanityFilter/issues/107
if ($releases === null) {
return;
} // Issue Fix: https://github.com/ReinfyTeam/ProfanityFilter/issues/107
foreach ($releases as $release) {
if (version_compare($highestVersion, $release["version"], ">=")) {
continue;
Expand All @@ -63,7 +65,9 @@ public function onRun() : void {
public function onCompletion() : void {
$lang = new Language();
[$highestVersion, $artifactUrl, $api, $err] = $this->getResult();
if($highestVersion === null || $artifactUrl === null || $api === null) return; // Issue: https://github.com/ReinfyTeam/ProfanityFilter/issues/107
if ($highestVersion === null || $artifactUrl === null || $api === null) {
return;
} // Issue: https://github.com/ReinfyTeam/ProfanityFilter/issues/107
$plugin = Server::getInstance()->getPluginManager()->getPlugin($this->pluginName);
if ($plugin === null) {
return;
Expand Down

0 comments on commit a2ca57a

Please sign in to comment.